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:
parent
727375321f
commit
ae4ef32b8c
|
@ -636,7 +636,7 @@ func TestSimpleReceive(t *testing.T) {
|
||||||
syscall.Write(c.rxCfg.EventFD, []byte{1, 0, 0, 0, 0, 0, 0, 0})
|
syscall.Write(c.rxCfg.EventFD, []byte{1, 0, 0, 0, 0, 0, 0, 0})
|
||||||
|
|
||||||
// Wait for packet to be received, then check it.
|
// 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()
|
c.mu.Lock()
|
||||||
rcvd := []byte(c.packets[0].vv.First())
|
rcvd := []byte(c.packets[0].vv.First())
|
||||||
c.packets = c.packets[:0]
|
c.packets = c.packets[:0]
|
||||||
|
|
Loading…
Reference in New Issue