diff options
author | Tamir Duberstein <tamird@google.com> | 2020-12-10 13:25:53 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-12-10 13:27:43 -0800 |
commit | 7fa0a57fc9b622ff6ee7dcba33e7dd8ddd07a0cf (patch) | |
tree | f87061570adf0bb060b3e157a309774f12777a55 /test/packetimpact/tests | |
parent | 205015687bb5ca09633646088ba6db72ce6076dd (diff) |
Uncomment payload generation
PiperOrigin-RevId: 346852543
Diffstat (limited to 'test/packetimpact/tests')
-rw-r--r-- | test/packetimpact/tests/tcp_zero_receive_window_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/packetimpact/tests/tcp_zero_receive_window_test.go b/test/packetimpact/tests/tcp_zero_receive_window_test.go index cf0431c57..f6c0a2f40 100644 --- a/test/packetimpact/tests/tcp_zero_receive_window_test.go +++ b/test/packetimpact/tests/tcp_zero_receive_window_test.go @@ -46,8 +46,8 @@ func TestZeroReceiveWindow(t *testing.T) { dut.SetSockOptInt(t, acceptFd, unix.IPPROTO_TCP, unix.TCP_NODELAY, 1) - samplePayload := &testbench.Payload{Bytes: make([]byte, payloadLen)} //testbench.GenerateRandomPayload(t, payloadLen)} - // Expect the DUT to eventually advertize zero receive window. + samplePayload := &testbench.Payload{Bytes: testbench.GenerateRandomPayload(t, payloadLen)} + // Expect the DUT to eventually advertise zero receive window. // The test would timeout otherwise. for { conn.Send(t, testbench.TCP{Flags: testbench.Uint8(header.TCPFlagAck | header.TCPFlagPsh)}, samplePayload) |