Skip to content

Commit 511ad4c

Browse files
committed
selftests: packetdrill: correct the expected timing in tcp_rcv_big_endseq
Commit f5fda1a ("selftests/net: packetdrill: add tcp_rcv_big_endseq.pkt") added this test recently, but it's failing with: # tcp_rcv_big_endseq.pkt:41: error handling packet: timing error: expected outbound packet at 1.230105 sec but happened at 1.190101 sec; tolerance 0.005046 sec # script packet: 1.230105 . 1:1(0) ack 54001 win 0 # actual packet: 1.190101 . 1:1(0) ack 54001 win 0 It's unclear why the test expects the ack to be delayed. Correct it. Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 410b0ac commit 511ad4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/net/packetdrill/tcp_rcv_big_endseq.pkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
// If queue is empty, accept a packet even if its end_seq is above wup + rcv_wnd
4040
+0 < P. 4001:54001(50000) ack 1 win 257
41-
+.040 > . 1:1(0) ack 54001 win 0
41+
+0 > . 1:1(0) ack 54001 win 0
4242

4343
// Check LINUX_MIB_BEYOND_WINDOW has been incremented 3 times.
4444
+0 `nstat | grep TcpExtBeyondWindow | grep -q " 3 "`

0 commit comments

Comments
 (0)