mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-15 18:50:41 -07:00
Fixed a bug where we leaked service imports. Also prior this would have leaked subscriptions as well.
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -547,6 +547,14 @@ func shutdownCluster(c *cluster) {
|
||||
}
|
||||
}
|
||||
|
||||
func (c *cluster) totalSubs() int {
|
||||
totalSubs := 0
|
||||
for _, s := range c.servers {
|
||||
totalSubs += int(s.NumSubscriptions())
|
||||
}
|
||||
return totalSubs
|
||||
}
|
||||
|
||||
// Wait for the expected number of outbound gateways, or fails.
|
||||
func waitForOutboundGateways(t *testing.T, s *server.Server, expected int, timeout time.Duration) {
|
||||
t.Helper()
|
||||
|
||||
Reference in New Issue
Block a user