Skip to content

Commit

Permalink
[tests] Add logging for TestGRPCResolverRoundRobin
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <github@ysh.us>
  • Loading branch information
yurishkuro committed Jan 14, 2021
1 parent 893c837 commit 00dde71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/discovery/grpcresolver/grpc_resolver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,12 @@ func makeSureConnectionsUp(t *testing.T, count int, testc grpctest.TestServiceCl
if _, ok := addrs[p.Addr.String()]; !ok {
addrs[p.Addr.String()] = struct{}{}
connected = true
t.Logf("connected to peer #%d (%v) on iteration %d", si, p.Addr, i)
break
}
time.Sleep(time.Millisecond * 10)
}
assert.True(t, connected, "Connection was still not up")
assert.True(t, connected, "Connection #%d was still not up. Connections so far: %+v", si, addrs)
}
}

Expand Down

0 comments on commit 00dde71

Please sign in to comment.