We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 813ec26 commit cc17941Copy full SHA for cc17941
tests/api.c
@@ -1057,14 +1057,16 @@ static void test_wolfSSH_SFTP_SendReadPacket(void)
1057
outSz = WOLFSSH_MAX_SFTP_RW / 2;
1058
rxSz = wolfSSH_SFTP_SendReadPacket(ssh, handle, handleSz,
1059
ofst, out, outSz);
1060
- AssertIntGT(rxSz, 0);
1061
- AssertIntLE(rxSz, outSz);
+ if (wolfSSH_get_error(ssh) != WS_REKEYING) {
+ AssertIntGT(rxSz, 0);
1062
+ AssertIntLE(rxSz, outSz);
1063
+ }
1064
1065
/* read all */
1066
outSz = WOLFSSH_MAX_SFTP_RW;
1067
1068
- if (rxSz != WS_REKEYING) {
1069
1070
AssertIntGT(rxSz, 0);
1071
AssertIntLE(rxSz, outSz);
1072
}
0 commit comments