diff --git a/routingtable/client_manager_test.go b/routingtable/client_manager_test.go index 22da0c5912c6eceb9ecdbc29024fcc1603a6e032..d697846c9791567c5800ab61db21db693bca2947 100644 --- a/routingtable/client_manager_test.go +++ b/routingtable/client_manager_test.go @@ -67,7 +67,19 @@ func TestClients(t *testing.T) { cm.Register(client) } ret := cm.Clients() - assert.Equal(t, test.expected, ret) + + for _, exp := range test.expected { + found := false + for _, client := range ret { + if exp == client { + found = true + continue + } + } + if !found { + t.Errorf("Test %q failed: Client %v not found in result: %v", exp, ret) + } + } } }