From 8c2d016bbebfcf42c0bfa9e01670aa794575fb78 Mon Sep 17 00:00:00 2001 From: Rogee Date: Tue, 22 Sep 2026 12:07:48 +0800 Subject: [PATCH] test: enforce capacity acceptance thresholds --- control-plane/account_store_test.go | 3 +++ 1 file changed, 3 insertions(+) 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)