Skip to content

Commit

Permalink
account for small highwater mark test case
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobBarthelmeh committed Nov 6, 2023
1 parent f5fd96d commit ab02256
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,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);
Expand Down

0 comments on commit ab02256

Please sign in to comment.