From 4da41e302a6a01b77a63ad2f8df1c249e0456bea Mon Sep 17 00:00:00 2001 From: Matt Moore Date: Mon, 24 Sep 2018 07:49:20 -0700 Subject: [PATCH] Bump the sleep in the controller testing. (#88) The rate limiting queue makes the sleep necessary. Locally I see 0-2 failures when this is run with -count=10000. This bumps the sleep slightly to reduce this further. Fixes: https://github.com/knative/pkg/issues/56 --- controller/controller_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/controller_test.go b/controller/controller_test.go index 85259deb6..42fac5b47 100644 --- a/controller/controller_test.go +++ b/controller/controller_test.go @@ -236,7 +236,7 @@ func TestEnqueues(t *testing.T) { test.work(impl) // The rate limit on our queue delays when things are added to the queue. - time.Sleep(10 * time.Millisecond) + time.Sleep(50 * time.Millisecond) impl.WorkQueue.ShutDown() gotQueue := drainWorkQueue(impl.WorkQueue)