Skip to content

Commit

Permalink
Merge pull request #1122 from sagikazarmark/nats-test-panic
Browse files Browse the repository at this point in the history
Fix nats test panics
  • Loading branch information
sagikazarmark committed Jun 30, 2021
2 parents 2216160 + 835cefb commit a119c95
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions transport/nats/subscriber_test.go
Expand Up @@ -42,16 +42,10 @@ func newNATSConn(t *testing.T) (*server.Server, *nats.Conn) {
t.Fatal("not yet running")
}

t.Log(s.Addr().String())

if ok := s.ReadyForConnections(5 * time.Second); !ok {
t.Fatal("not ready for connections")
}

//if n := s.NumSubscriptions(); n > 0 {
// t.Fatalf("found %d active subscriptions on the server", n)
//}

c, err := nats.Connect("nats://"+s.Addr().String(), nats.Name(t.Name()))
if err != nil {
t.Fatalf("failed to connect to NATS server: %s", err)
Expand Down

0 comments on commit a119c95

Please sign in to comment.