Skip to content

Commit

Permalink
Fix more flakiness in ddl_high_priority.inc test
Browse files Browse the repository at this point in the history
Summary:
This ensures the connection for con2 created in the ddl_high_priority
test is closed before the next test is started.

Reviewed By: Tema

Differential Revision: D6469829

fbshipit-source-id: 556b441
  • Loading branch information
Herman Lee authored and facebook-github-bot committed Dec 4, 2017
1 parent 09f56eb commit bffb8d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mysql-test/include/ddl_high_priority.inc
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ drop table t1_new;
## no effect for regular users
##

--source include/count_sessions.inc
connect (con2,localhost,test_user2,,test,,);
# $con_kill is regular user
--let $con_kill = con2
Expand All @@ -86,6 +87,9 @@ connect (con2,localhost,test_user2,,test,,);

disconnect con2;

# Ensure con2 is closed
--source include/wait_until_count_sessions.inc

# restore $con_kill
--let $con_kill = default
# restore $should_kill
Expand Down

0 comments on commit bffb8d7

Please sign in to comment.