From cb6088e33951b20ca29ebbc4fe4a3298f3736d57 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Fri, 29 Sep 2023 15:14:27 -0700 Subject: [PATCH] check if rekeying in test --- tests/api.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/api.c b/tests/api.c index d556b9dd8..9ab032f7a 100644 --- a/tests/api.c +++ b/tests/api.c @@ -822,8 +822,10 @@ static void test_wolfSSH_SFTP_SendReadPacket(void) outSz = WOLFSSH_MAX_SFTP_RW; rxSz = wolfSSH_SFTP_SendReadPacket(ssh, handle, handleSz, ofst, out, outSz); - AssertIntGT(rxSz, 0); - AssertIntLE(rxSz, outSz); + if (rxSz != WS_REKEYING) { + AssertIntGT(rxSz, 0); + AssertIntLE(rxSz, outSz); + } free(out); wolfSSH_SFTP_Close(ssh, handle, handleSz);