diff options
author | Tamir Duberstein <tamird@google.com> | 2020-12-10 14:20:46 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-12-10 14:23:10 -0800 |
commit | 01126d47fc1fb6e2c11a49c23ef0d7a967195c9b (patch) | |
tree | a609ceff94926a27f420598117f6bc9fe9d63117 | |
parent | 7fa0a57fc9b622ff6ee7dcba33e7dd8ddd07a0cf (diff) |
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
-rw-r--r-- | test/packetimpact/tests/tcp_zero_receive_window_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
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 } } |