Skip to content

Commit 9359af0

Browse files
committed
sql: fix insight integration test for contention
This change lowers the latency threshold for which statement is considered slow to make sure it detects contention. Previous value was set to 100ms which is default. New value is set to 30ms to be the same as overridden value in other tests. Release note: None
1 parent 7a063ff commit 9359af0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sql/sqlstats/insights/integration/insights_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ func TestInsightsIntegrationForContention(t *testing.T) {
523523
require.NoError(t, err)
524524

525525
// Enable detection by setting a latencyThreshold > 0.
526-
latencyThreshold := 100 * time.Millisecond
526+
latencyThreshold := 30 * time.Millisecond
527527
insights.LatencyThreshold.Override(ctx, &settings.SV, latencyThreshold)
528528

529529
// Create a new connection, and then in a go routine have it start a transaction, update a row,

0 commit comments

Comments
 (0)