Deflake TestSimpleReceive failures due to timeouts

This test will occasionally fail waiting to read a packet. From repeated runs,
I've seen it up to 1.5s for waitForPackets to complete.

PiperOrigin-RevId: 254484627
This commit is contained in:
Brad Burlage 2019-06-21 15:55:15 -07:00 committed by gVisor bot
parent 727375321f
commit ae4ef32b8c
1 changed files with 1 additions and 1 deletions

View File

@ -636,7 +636,7 @@ func TestSimpleReceive(t *testing.T) {
syscall.Write(c.rxCfg.EventFD, []byte{1, 0, 0, 0, 0, 0, 0, 0})
// Wait for packet to be received, then check it.
c.waitForPackets(1, time.After(time.Second), "Error waiting for packet")
c.waitForPackets(1, time.After(5*time.Second), "Timeout waiting for packet")
c.mu.Lock()
rcvd := []byte(c.packets[0].vv.First())
c.packets = c.packets[:0]