diff options
| author | Simon Goldschmidt <[email protected]> | 2018-10-12 21:18:39 +0200 |
|---|---|---|
| committer | Simon Goldschmidt <[email protected]> | 2018-10-12 21:18:39 +0200 |
| commit | b406a5438950b5b6345a9b85b6e82f36f36cdfe8 (patch) | |
| tree | e425206941ebd952deb4ec701714dc0c502c685c /test | |
| parent | e3cd915fb90bb3694c0ec5ef86764ffbf8b662dd (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.c | 2 |
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); } |
