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
This commit is contained in:
Tamir Duberstein
2020-12-10 14:23:10 -08:00
committed by gVisor bot
parent 7fa0a57fc9
commit 01126d47fc
@@ -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
}
}