mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Allow more time for goroutines to exit
This commit is contained in:
@@ -27,7 +27,7 @@ func TestGoServerShutdownWithClients(t *testing.T) {
|
||||
}
|
||||
s.Shutdown()
|
||||
// Wait longer for client connections
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
time.Sleep(500 * time.Millisecond)
|
||||
delta := (runtime.NumGoroutine() - base)
|
||||
// There may be some finalizers or IO, but in general more than
|
||||
// 2 as a delta represents a problem.
|
||||
|
||||
Reference in New Issue
Block a user