mirror of https://github.com/status-im/consul.git
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)
|
||||
sm.AddServer(server)
|
||||
}
|
||||
if sm.NumServers() != maxServers {
|
||||
t.Fatalf("Expected %d servers, received %d", maxServers, sm.NumServers())
|
||||
}
|
||||
|
||||
sm.RebalanceServers()
|
||||
|
||||
if sm.NumServers() != maxServers {
|
||||
|
|
Loading…
Reference in New Issue