Skip to content

Commit

Permalink
sql: deflake unique logic test
Browse files Browse the repository at this point in the history
PR cockroachdb#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
  • Loading branch information
mgartner authored and fqazi committed Apr 4, 2022
1 parent e76eb2e commit 1eb1842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sql/logictest/testdata/logic_test/unique
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1eb1842

Please sign in to comment.