Codebase list golang-github-go-kit-kit / da4f1d0
test(transport/nats): remove nats server address log line The running bit is set way earlier than the listener that s.Addr returns. This lead to panics on several occasions when the listener was not yet set. Moving after ReadyForConnections could be a solution, but logging the nats server address does not add much to the test anyway: the address is logged if there is an error. Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com> Mark Sagi-Kazar 2 years ago
1 changed file(s) with 0 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
4141 t.Fatal("not yet running")
4242 }
4343
44 t.Log(s.Addr().String())
45
4644 if ok := s.ReadyForConnections(5 * time.Second); !ok {
4745 t.Fatal("not ready for connections")
4846 }