diff --git a/agent/local/state_test.go b/agent/local/state_test.go index 11590e5122..e7dfb29060 100644 --- a/agent/local/state_test.go +++ b/agent/local/state_test.go @@ -1637,7 +1637,7 @@ func TestAgent_AliasCheck(t *testing.T) { case <-notifyCh: t.Fatal("notify received") - case <-time.After(50 * time.Millisecond): + default: } // Update other check and verify we do not get notified @@ -1646,7 +1646,7 @@ func TestAgent_AliasCheck(t *testing.T) { case <-notifyCh: t.Fatal("notify received") - case <-time.After(50 * time.Millisecond): + default: } // Update change and verify we get notified