aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/test/isolation/specs/insert-conflict-toast.spec6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/isolation/specs/insert-conflict-toast.spec b/src/test/isolation/specs/insert-conflict-toast.spec
index efd4474f377..595cb70fc5c 100644
--- a/src/test/isolation/specs/insert-conflict-toast.spec
+++ b/src/test/isolation/specs/insert-conflict-toast.spec
@@ -48,4 +48,8 @@ step s3insert {
INSERT INTO ctoast (key, val) VALUES (1, ctoast_large_val()) ON CONFLICT DO NOTHING;
}
-permutation s2insert s3insert s1commit
+# s1's commit will release s2 and s3 at the same time, so there's a
+# race condition as to which finishes first. Annotate the permutation
+# to always report s2 first.
+
+permutation s2insert s3insert(s2insert) s1commit