mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
@@ -313,6 +313,9 @@ func TestSublistCache(t *testing.T) {
|
||||
s.Match(fmt.Sprintf("foo-%d\n", i))
|
||||
}
|
||||
|
||||
// Let cleanup Go routine run.
|
||||
runtime.Gosched()
|
||||
|
||||
if cc := s.CacheCount(); cc > slCacheMax {
|
||||
t.Fatalf("Cache should be constrained by cacheMax, got %d for current count\n", cc)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user