agent/local: don't use time.After in test since notify is instant

This commit is contained in:
Mitchell Hashimoto 2018-07-18 16:16:28 -05:00
parent 6be4fa9118
commit 9f128e40d6
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 2 additions and 2 deletions

View File

@ -1627,7 +1627,7 @@ func TestAgent_AliasCheck(t *testing.T) {
l.UpdateCheck(types.CheckID("c1"), api.HealthCritical, "")
select {
case <-notifyCh:
case <-time.After(100 * time.Millisecond):
default:
t.Fatal("notify not received")
}
@ -1653,7 +1653,7 @@ func TestAgent_AliasCheck(t *testing.T) {
l.UpdateCheck(types.CheckID("c1"), api.HealthPassing, "")
select {
case <-notifyCh:
case <-time.After(100 * time.Millisecond):
default:
t.Fatal("notify not received")
}
}