From 772cc864dcb77d99153d8fb9efce2311de1e07fc Mon Sep 17 00:00:00 2001 From: Marcus Gartner Date: Tue, 29 Mar 2022 16:38:51 -0400 Subject: [PATCH] sql: deflake unique logic test PR #78685 changes the query plan of one query in a logic test in a way that makes the test flakey. This commit guarantees that the test cannot be flakey, regardless of the query plan. Release note: None --- pkg/sql/logictest/testdata/logic_test/unique | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sql/logictest/testdata/logic_test/unique b/pkg/sql/logictest/testdata/logic_test/unique index f9e5e899e823..d39111d1dede 100644 --- a/pkg/sql/logictest/testdata/logic_test/unique +++ b/pkg/sql/logictest/testdata/logic_test/unique @@ -274,7 +274,7 @@ INSERT INTO uniq_enum VALUES ('us-west', 'foo', 1, 1), ('eu-west', 'bar', 2, 2) # index, and the prefix of the index is an enum. This case uses the default # value for columns r and j. statement error pgcode 23505 pq: duplicate key value violates unique constraint "unique_i"\nDETAIL: Key \(i\)=\(1\) already exists\. -INSERT INTO uniq_enum (s, i) VALUES ('foo', 1), ('bar', 2) +INSERT INTO uniq_enum (s, i) VALUES ('foo', 1), ('bar', 3) query TTII colnames,rowsort SELECT * FROM uniq_enum