Commit 46ae7e87 authored by Daniel Smith's avatar Daniel Smith

Increase timeout to fix flaky tests

parent f7123ac8
...@@ -200,12 +200,12 @@ func testEchoUDP(t *testing.T, address string, port int) { ...@@ -200,12 +200,12 @@ func testEchoUDP(t *testing.T, address string, port int) {
func waitForNumProxyLoops(t *testing.T, p *Proxier, want int32) { func waitForNumProxyLoops(t *testing.T, p *Proxier, want int32) {
var got int32 var got int32
for i := 0; i < 4; i++ { for i := 0; i < 600; i++ {
got = atomic.LoadInt32(&p.numProxyLoops) got = atomic.LoadInt32(&p.numProxyLoops)
if got == want { if got == want {
return return
} }
time.Sleep(500 * time.Millisecond) time.Sleep(100 * time.Millisecond)
} }
t.Errorf("expected %d ProxyLoops running, got %d", want, got) t.Errorf("expected %d ProxyLoops running, got %d", want, got)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment