mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Set defaultServerOptions port to -1 for random
Updated some tests based on this change but also missing defer connection close or server shutdown. Fixed how the OCSP run go routine would shutdown, which would never complete because grWG was not decremented by this go routine prior to invoking s.Shutdown() Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
@@ -393,7 +393,7 @@ func TestNoRaceQueueSubWeightOrderMultipleConnections(t *testing.T) {
|
||||
<-start
|
||||
// Now create 100 identical queue subscribers on each connection.
|
||||
for i := 0; i < 100; i++ {
|
||||
if _, err := nc.QueueSubscribeSync("foo", "bar"); err != nil {
|
||||
if _, err := nc.QueueSubscribe("foo", "bar", func(_ *nats.Msg) {}); err != nil {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user