Skip to content

Commit cbd79a9

Browse files
committed
explain_test: deflake TestContentionTimeOnWrites
This test intentionally adds sleep time with an active write so that we can measure contention. Under duress, this can lead to WriteTooOld errors, so skip the test under duress. Fixes: #153394 Release note: None
1 parent 068293d commit cbd79a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/sql/opt/exec/explain/output_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ func TestContentionTimeOnWrites(t *testing.T) {
231231
defer leaktest.AfterTest(t)()
232232
defer log.Scope(t).Close(t)
233233

234+
skip.UnderDuress(t, "see issue #153394")
235+
234236
ctx := context.Background()
235237
s, conn, _ := serverutils.StartServer(t, base.TestServerArgs{})
236238
defer s.Stopper().Stop(ctx)

0 commit comments

Comments
 (0)