From 46ae7e87c7cba397677e6d2a2d1e59c4eff03bdf Mon Sep 17 00:00:00 2001 From: Daniel Smith Date: Tue, 1 Sep 2015 16:08:13 -0700 Subject: [PATCH] Increase timeout to fix flaky tests --- pkg/proxy/userspace/proxier_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/proxy/userspace/proxier_test.go b/pkg/proxy/userspace/proxier_test.go index 87704b67c5c..f45102c55b2 100644 --- a/pkg/proxy/userspace/proxier_test.go +++ b/pkg/proxy/userspace/proxier_test.go @@ -200,12 +200,12 @@ func testEchoUDP(t *testing.T, address string, port int) { func waitForNumProxyLoops(t *testing.T, p *Proxier, want int32) { var got int32 - for i := 0; i < 4; i++ { + for i := 0; i < 600; i++ { got = atomic.LoadInt32(&p.numProxyLoops) if got == want { return } - time.Sleep(500 * time.Millisecond) + time.Sleep(100 * time.Millisecond) } t.Errorf("expected %d ProxyLoops running, got %d", want, got) }