From b406a5438950b5b6345a9b85b6e82f36f36cdfe8 Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Fri, 12 Oct 2018 21:18:39 +0200 Subject: [PATCH] Fix mqtt unit test broken after 684adaca Signed-off-by: Simon Goldschmidt --- test/unit/mqtt/test_mqtt.c | 2 ++ 1 file changed, 2 insertions(+) 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); }