From 474580540cae41dc56938611eed2664cb0fb26df Mon Sep 17 00:00:00 2001 From: DanB Date: Sat, 27 Aug 2016 17:48:58 +0200 Subject: [PATCH] Remove useles balancer test --- balancer2go/balancer_test.go | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/balancer2go/balancer_test.go b/balancer2go/balancer_test.go index 96db94ff2..74cc9ca9c 100644 --- a/balancer2go/balancer_test.go +++ b/balancer2go/balancer_test.go @@ -51,26 +51,3 @@ func TestOneBalancer(t *testing.T) { t.Error("With only one rater these shoud be equal") } } - -func Test100Balancer(t *testing.T) { - balancer := NewBalancer() - var clients []Worker - for i := 0; i < 100; i++ { - c := new(rpc.Client) - balancer.AddClient(fmt.Sprintf("client%v", i), c) - } - for i := 0; i < 100; i++ { - c := balancer.Balance() - if c == nil { - t.Error("Retuned nil client!") - } - for _, o := range clients { - if c == o { - t.Error("Balance did not iterate all the available clients") - break - } - } - clients = append(clients, c) - } - -}