Increase due to sendq

Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
Derek Collison
2021-02-16 14:09:03 -08:00
parent ddc800174f
commit eecec2aed1

View File

@@ -331,11 +331,11 @@ func TestNoRaceLargeClusterMem(t *testing.T) {
checkClusterFormed(t, servers...)
// Calculate in MB what we are using now.
const max = 50 * 1024 * 1024 // 50MB
const max = 60 * 1024 * 1024 // 60MB
runtime.ReadMemStats(&m)
used := m.TotalAlloc - pta
if used > max {
t.Fatalf("Cluster using too much memory, expect < 50MB, got %dMB", used/(1024*1024))
t.Fatalf("Cluster using too much memory, expect < 60MB, got %dMB", used/(1024*1024))
}
for _, s := range servers {