Commit a0fd024
Sabrina Dubroca
selftests: tls: make the new data_steal test less flaky
JIRA: https://issues.redhat.com/browse/RHEL-115640
commit 715c7a3
Author: Jakub Kicinski <kuba@kernel.org>
Date: Thu Aug 14 12:43:23 2025 -0700
selftests: tls: make the new data_steal test less flaky
The CI has hit a couple of cases of:
RUN global.data_steal ...
tls.c:2762:data_steal:Expected recv(cfd, buf2, sizeof(buf2), MSG_DONTWAIT) (20000) == -1 (-1)
data_steal: Test terminated by timeout
FAIL global.data_steal
Looks like the 2msec sleep is not long enough. Make the sleep longer,
and then instead of second sleep wait for the thieving process to exit.
That way we can be sure it called recv() before us.
While at it also avoid trying to steal more than a record, this seems
to be causing issues in manual testing as well.
Fixes: d7e8259 ("selftests: tls: test TCP stealing data from under the TLS socket")
Link: https://patch.msgid.link/20250814194323.2014650-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sabrina Dubroca <sdubroca@redhat.com>1 parent 89270f3 commit a0fd024
1 file changed
+5
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2526 | 2526 | | |
2527 | 2527 | | |
2528 | 2528 | | |
2529 | | - | |
2530 | | - | |
| 2529 | + | |
| 2530 | + | |
2531 | 2531 | | |
2532 | 2532 | | |
2533 | 2533 | | |
2534 | | - | |
| 2534 | + | |
2535 | 2535 | | |
2536 | 2536 | | |
2537 | 2537 | | |
2538 | 2538 | | |
2539 | | - | |
| 2539 | + | |
| 2540 | + | |
2540 | 2541 | | |
2541 | 2542 | | |
2542 | 2543 | | |
2543 | 2544 | | |
2544 | 2545 | | |
2545 | 2546 | | |
2546 | 2547 | | |
2547 | | - | |
2548 | | - | |
2549 | | - | |
2550 | 2548 | | |
2551 | 2549 | | |
2552 | 2550 | | |
| |||
0 commit comments