Skip to content

Commit

Permalink
Fix agent tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Fritz authored and Thibault Gilles committed Mar 12, 2019
1 parent fee3f63 commit 820641e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions agent/agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -644,16 +644,16 @@ func TestAgent_RemoveService(t *testing.T) {
}

// check the mysql service is unnafected
if _, ok := a.checkTTLs["service:redis:1"]; !ok {
if _, ok := a.checkTTLs["service:mysql:1"]; !ok {
t.Fatalf("check ttl for mysql:1 should not be removed")
}
if check := a.State.Check(types.CheckID("service:redis:1")); check == nil {
if check := a.State.Check(types.CheckID("service:mysql:1")); check == nil {
t.Fatalf("check ttl for mysql:1 should not be removed")
}
if _, ok := a.checkTTLs["service:redis:2"]; !ok {
if _, ok := a.checkTTLs["service:mysql:2"]; !ok {
t.Fatalf("check ttl for mysql:2 should not be removed")
}
if check := a.State.Check(types.CheckID("service:redis:2")); check == nil {
if check := a.State.Check(types.CheckID("service:mysql:2")); check == nil {
t.Fatalf("check ttl for mysql:2 should not be removed")
}
}
Expand Down

0 comments on commit 820641e

Please sign in to comment.