test: enforce capacity acceptance thresholds
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user