Negative check: test an invalid condition

This commit is contained in:
Sean Chittenden 2016-03-25 12:22:33 -07:00
parent 0f3ad9c120
commit 3433feb93b
1 changed files with 6 additions and 0 deletions

View File

@ -57,4 +57,10 @@ func TestIsConsulServer(t *testing.T) {
if parts.Bootstrap {
t.Fatalf("unexpected bootstrap")
}
delete(m.Tags, "consul")
ok, parts = server_details.IsConsulServer(m)
if ok {
t.Fatalf("unexpected ok server")
}
}