mirror of
https://github.com/status-im/consul.git
synced 2025-02-16 23:57:07 +00:00
Negative check: test an invalid condition
This commit is contained in:
parent
0f3ad9c120
commit
3433feb93b
@ -57,4 +57,10 @@ func TestIsConsulServer(t *testing.T) {
|
|||||||
if parts.Bootstrap {
|
if parts.Bootstrap {
|
||||||
t.Fatalf("unexpected bootstrap")
|
t.Fatalf("unexpected bootstrap")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete(m.Tags, "consul")
|
||||||
|
ok, parts = server_details.IsConsulServer(m)
|
||||||
|
if ok {
|
||||||
|
t.Fatalf("unexpected ok server")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user