mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 06:16:08 +00:00
Add a quick length check
Verify that AddServer behaved as expected
This commit is contained in:
parent
4589c36308
commit
664ab238fd
@ -272,6 +272,10 @@ func TestServerManager_RemoveServer(t *testing.T) {
|
|||||||
servers = append(servers, server)
|
servers = append(servers, server)
|
||||||
sm.AddServer(server)
|
sm.AddServer(server)
|
||||||
}
|
}
|
||||||
|
if sm.NumServers() != maxServers {
|
||||||
|
t.Fatalf("Expected %d servers, received %d", maxServers, sm.NumServers())
|
||||||
|
}
|
||||||
|
|
||||||
sm.RebalanceServers()
|
sm.RebalanceServers()
|
||||||
|
|
||||||
if sm.NumServers() != maxServers {
|
if sm.NumServers() != maxServers {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user