diff options
author | Tamir Duberstein <tamird@google.com> | 2021-02-26 11:09:46 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-02-26 11:11:33 -0800 |
commit | 8e78d0eda6ac3b72ec6f9db1f559035410a3a212 (patch) | |
tree | 4c91862766d4f311794941aad56d38c9b12f0c12 /test | |
parent | f3de211bb764d4e720879509debf918d37a71ce7 (diff) |
Emit the error
Without this change, the error produced is quite useless:
--- FAIL: TestZeroWindowProbeRetransmit (11.44s)
tcp_zero_window_probe_retransmit_test.go:81: expected a probe with sequence number 824638527212: loop 5
FAIL
PiperOrigin-RevId: 359796370
Diffstat (limited to 'test')
-rw-r--r-- | test/packetimpact/tests/tcp_zero_window_probe_retransmit_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/packetimpact/tests/tcp_zero_window_probe_retransmit_test.go b/test/packetimpact/tests/tcp_zero_window_probe_retransmit_test.go index b15b8fc25..d094c10eb 100644 --- a/test/packetimpact/tests/tcp_zero_window_probe_retransmit_test.go +++ b/test/packetimpact/tests/tcp_zero_window_probe_retransmit_test.go @@ -78,7 +78,7 @@ func TestZeroWindowProbeRetransmit(t *testing.T) { // first retransmission time. The retransmission times is supposed to // exponentially increase. if _, err := conn.ExpectData(t, &testbench.TCP{SeqNum: probeSeq}, nil, time.Duration(i)*time.Second); err != nil { - t.Fatalf("expected a probe with sequence number %d: loop %d", probeSeq, i) + t.Fatalf("%d: expected a probe with sequence number %d: %s", i, probeSeq, err) } if i == 1 { // Skip the first probe as computing transmit time for that is |