Skip to content

Commit 4edb067

Browse files
committed
sql/inspect: deflake TestDetectIndexConsistencyErrors by disabling MVCC GC wait
We noticed a timeout in TestDetectIndexConsistencyErrors. The stacks where waiting for the MVCC GC to complete. Since that's not critical to the test, and there is a knob to avoid waiting for that, I am going to fix the flake by using the knob. Fixes #155044 Epic: none Release note: none
1 parent dae24c3 commit 4edb067

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/sql/inspect/index_consistency_check_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ func TestDetectIndexConsistencyErrors(t *testing.T) {
124124
Inspect: &sql.InspectTestingKnobs{
125125
InspectIssueLogger: issueLogger,
126126
},
127+
GCJob: &sql.GCJobTestingKnobs{
128+
SkipWaitingForMVCCGC: true,
129+
},
127130
},
128131
},
129132
})

0 commit comments

Comments
 (0)