Skip to content

Commit

Permalink
sql: deflake mixed version user ID migration logic tests
Browse files Browse the repository at this point in the history
This patch adds a sleep directive into the mixed version user ID
migration logic tests to reduce the flakiness caused by the cluster
upgrades not finishing quickly enough.

Release note: None
  • Loading branch information
andyyang890 committed Mar 10, 2023
1 parent 6436b39 commit 00ab70d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,14 @@ connection1 t
connection2 t

# Wait for migrations to run and verify that owner_id column is now present.
# The sleep directive is needed to reduce flakiness.

upgrade 0

upgrade 2

sleep 10s

query B retry
SELECT crdb_internal.is_at_least_version('1000022.2-76')
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ SELECT crdb_internal.node_executable_version() SIMILAR TO '1000022.2-%'
true

# Wait for migrations to run.
# The sleep directive is needed to reduce flakiness.

sleep 10s

Expand Down

0 comments on commit 00ab70d

Please sign in to comment.