account for small highwater mark test case

pull/614/head
JacobBarthelmeh 2023-11-05 20:16:36 -08:00
parent 3efdeaa037
commit 9b5c54cd7f
1 changed files with 8 additions and 0 deletions

View File

@ -1051,6 +1051,14 @@ static void test_wolfSSH_SFTP_SendReadPacket(void)
/* If the socket is closed on shutdown, peer is gone, this is OK. */
argsCount = WS_SUCCESS;
}
#if DEFAULT_HIGHWATER_MARK < 8000
if (argsCount == WS_REKEYING) {
/* in cases where highwater mark is really small a re-key could happen */
argsCount = WS_SUCCESS;
}
#endif
AssertIntEQ(argsCount, WS_SUCCESS);
wolfSSH_free(ssh);