diff --git a/control-plane/account_store_test.go b/control-plane/account_store_test.go index bc5d2d9..fbee226 100644 --- a/control-plane/account_store_test.go +++ b/control-plane/account_store_test.go @@ -424,6 +424,9 @@ func TestAccountStoreSyntheticConcurrentReadWrite(t *testing.T) { "lock_wait_count": totalWaitCount, "lock_wait_ms": float64(totalWaitDuration.Microseconds()) / 1000, "pending_queue_items": 0, } + if percentile(95) >= 25 || percentile(99) >= 100 || diskBytes >= 2*1024*1024 || walBytes != 0 || totalWaitCount != 0 || totalWaitDuration != 0 || maxOpenConnections != 1 || busyTimeout != 5000 { + t.Fatalf("capacity thresholds failed: %+v", metrics) + } encoded, err := json.Marshal(metrics) if err != nil { t.Fatal(err)