From 01126d47fc1fb6e2c11a49c23ef0d7a967195c9b Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Thu, 10 Dec 2020 14:20:46 -0800 Subject: Log window size Without this change, this test produces quite opaque errors as valid TCP segments are not logged; what we see in the end is any random traffic that happened *after* the final TCP segment. PiperOrigin-RevId: 346864169 --- test/packetimpact/tests/tcp_zero_receive_window_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/packetimpact') diff --git a/test/packetimpact/tests/tcp_zero_receive_window_test.go b/test/packetimpact/tests/tcp_zero_receive_window_test.go index f6c0a2f40..b494e179b 100644 --- a/test/packetimpact/tests/tcp_zero_receive_window_test.go +++ b/test/packetimpact/tests/tcp_zero_receive_window_test.go @@ -55,7 +55,9 @@ func TestZeroReceiveWindow(t *testing.T) { if err != nil { t.Fatalf("expected packet was not received: %s", err) } - if *gotTCP.WindowSize == 0 { + windowSize := *gotTCP.WindowSize + t.Logf("got window size = %d", windowSize) + if windowSize == 0 { break } } -- cgit v1.2.3