diff --git a/test/JDBC/expected/restrict_drop_user_role.out b/test/JDBC/expected/restrict_drop_user_role.out index c058d8feff..d4bf6f9b88 100644 --- a/test/JDBC/expected/restrict_drop_user_role.out +++ b/test/JDBC/expected/restrict_drop_user_role.out @@ -289,6 +289,14 @@ t ~~END~~ +-- Wait to sync with another session +SELECT pg_sleep(1); +go +~~START~~ +void + +~~END~~ + -- tsql drop login no_priv_login1 @@ -305,6 +313,15 @@ t ~~END~~ +-- Wait to sync with another session +SELECT pg_sleep(1); +go +~~START~~ +void + +~~END~~ + + -- tsql drop login no_priv_login2 go @@ -362,6 +379,15 @@ bool ~~END~~ +-- Wait to sync with another session +SELECT pg_sleep(1); +go +~~START~~ +void + +~~END~~ + + -- tsql use restrict_user_db1 go diff --git a/test/JDBC/expected/single_db/restrict_drop_user_role.out b/test/JDBC/expected/single_db/restrict_drop_user_role.out index 51acb0056a..8be4aeff75 100644 --- a/test/JDBC/expected/single_db/restrict_drop_user_role.out +++ b/test/JDBC/expected/single_db/restrict_drop_user_role.out @@ -289,6 +289,14 @@ t ~~END~~ +-- Wait to sync with another session +SELECT pg_sleep(1); +go +~~START~~ +void + +~~END~~ + -- tsql drop login no_priv_login1 @@ -305,6 +313,15 @@ t ~~END~~ +-- Wait to sync with another session +SELECT pg_sleep(1); +go +~~START~~ +void + +~~END~~ + + -- tsql drop login no_priv_login2 go @@ -366,6 +383,15 @@ bool ~~END~~ +-- Wait to sync with another session +SELECT pg_sleep(1); +go +~~START~~ +void + +~~END~~ + + -- tsql use restrict_user_db1 go diff --git a/test/JDBC/input/restrict_drop_user_role.mix b/test/JDBC/input/restrict_drop_user_role.mix index 53d5d91596..8bba2e96e7 100644 --- a/test/JDBC/input/restrict_drop_user_role.mix +++ b/test/JDBC/input/restrict_drop_user_role.mix @@ -188,6 +188,9 @@ SELECT pg_terminate_backend(pid) FROM pg_stat_get_activity(NULL) WHERE sys.suser_name(usesysid) = 'no_priv_login1' AND backend_type = 'client backend' AND usesysid IS NOT NULL; go +-- Wait to sync with another session +SELECT pg_sleep(1); +go -- tsql drop login no_priv_login1 @@ -199,6 +202,10 @@ SELECT pg_terminate_backend(pid) FROM pg_stat_get_activity(NULL) WHERE sys.suser_name(usesysid) = 'no_priv_login2' AND backend_type = 'client backend' AND usesysid IS NOT NULL; go +-- Wait to sync with another session +SELECT pg_sleep(1); +go + -- tsql drop login no_priv_login2 go @@ -244,6 +251,10 @@ SELECT pg_terminate_backend(pid) FROM pg_stat_get_activity(NULL) WHERE sys.suser_name(usesysid) = 'restrict_user_l1' AND backend_type = 'client backend' AND usesysid IS NOT NULL; go +-- Wait to sync with another session +SELECT pg_sleep(1); +go + -- tsql use restrict_user_db1 go