test: enforce capacity acceptance thresholds

This commit is contained in:
2026-09-22 12:07:48 +08:00
parent 722465c8cb
commit 8c2d016bbe
+3
View File
@@ -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)