summaryrefslogtreecommitdiffhomepage
path: root/test/packetimpact
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@google.com>2020-12-10 14:20:46 -0800
committergVisor bot <gvisor-bot@google.com>2020-12-10 14:23:10 -0800
commit01126d47fc1fb6e2c11a49c23ef0d7a967195c9b (patch)
treea609ceff94926a27f420598117f6bc9fe9d63117 /test/packetimpact
parent7fa0a57fc9b622ff6ee7dcba33e7dd8ddd07a0cf (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
Diffstat (limited to 'test/packetimpact')
-rw-r--r--test/packetimpact/tests/tcp_zero_receive_window_test.go4
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
}
}