summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSimon Goldschmidt <[email protected]>2018-10-12 21:18:39 +0200
committerSimon Goldschmidt <[email protected]>2018-10-12 21:18:39 +0200
commitb406a5438950b5b6345a9b85b6e82f36f36cdfe8 (patch)
treee425206941ebd952deb4ec701714dc0c502c685c /test
parente3cd915fb90bb3694c0ec5ef86764ffbf8b662dd (diff)
Fix mqtt unit test broken after 684adaca
Signed-off-by: Simon Goldschmidt <[email protected]>
Diffstat (limited to 'test')
-rw-r--r--test/unit/mqtt/test_mqtt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/unit/mqtt/test_mqtt.c b/test/unit/mqtt/test_mqtt.c
index 32f08e67..7cff13ea 100644
--- a/test/unit/mqtt/test_mqtt.c
+++ b/test/unit/mqtt/test_mqtt.c
@@ -94,6 +94,8 @@ START_TEST(basic_connect)
p = pbuf_alloc(PBUF_RAW, sizeof(rxbuf), PBUF_REF);
fail_unless(p != NULL);
p->payload = rxbuf;
+ /* since we hack the rx path, we have to hack the rx window, too: */
+ client->conn->rcv_wnd -= p->tot_len;
if (client->conn->recv(client->conn->callback_arg, client->conn, p, ERR_OK) != ERR_OK) {
pbuf_free(p);
}