diff --git a/pkg/sql/logictest/testdata/logic_test/mixed_version_external_connections_owner_id b/pkg/sql/logictest/testdata/logic_test/mixed_version_external_connections_owner_id index 5c1f9514a473..6fd2a1762935 100644 --- a/pkg/sql/logictest/testdata/logic_test/mixed_version_external_connections_owner_id +++ b/pkg/sql/logictest/testdata/logic_test/mixed_version_external_connections_owner_id @@ -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') ---- diff --git a/pkg/sql/logictest/testdata/logic_test/mixed_version_role_members_user_ids b/pkg/sql/logictest/testdata/logic_test/mixed_version_role_members_user_ids index 6f609e5ea94f..a80f2e7353a4 100644 --- a/pkg/sql/logictest/testdata/logic_test/mixed_version_role_members_user_ids +++ b/pkg/sql/logictest/testdata/logic_test/mixed_version_role_members_user_ids @@ -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