Add a quick length check

Verify that AddServer behaved as expected
This commit is contained in:
Sean Chittenden 2016-03-28 11:38:12 -07:00
parent 4589c36308
commit 664ab238fd
1 changed files with 4 additions and 0 deletions

View File

@ -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 {