mirror of https://github.com/citusdata/citus.git
prevent flakyness
parent
e9b67f158c
commit
62ebc68d0e
|
@ -146,6 +146,12 @@ SELECT result FROM run_command_on_all_nodes($$SELECT pg_reload_conf()$$);
|
|||
t
|
||||
(3 rows)
|
||||
|
||||
SELECT pg_sleep(0.1);
|
||||
pg_sleep
|
||||
---------------------------------------------------------------------
|
||||
|
||||
(1 row)
|
||||
|
||||
\c other_db1
|
||||
CREATE DATABASE other_db3;
|
||||
\c regression
|
||||
|
@ -208,5 +214,11 @@ SELECT result FROM run_command_on_all_nodes($$SELECT pg_reload_conf()$$);
|
|||
t
|
||||
(3 rows)
|
||||
|
||||
SELECT pg_sleep(0.1);
|
||||
pg_sleep
|
||||
---------------------------------------------------------------------
|
||||
|
||||
(1 row)
|
||||
|
||||
DROP SCHEMA other_databases;
|
||||
DROP DATABASE other_db1;
|
||||
|
|
|
@ -101,6 +101,7 @@ DROP USER IF EXISTS worker_user1, worker_user2, worker_user3;
|
|||
-- test creating and dropping a database from a Citus non-main database
|
||||
SELECT result FROM run_command_on_all_nodes($$ALTER SYSTEM SET citus.enable_create_database_propagation TO true$$);
|
||||
SELECT result FROM run_command_on_all_nodes($$SELECT pg_reload_conf()$$);
|
||||
SELECT pg_sleep(0.1);
|
||||
\c other_db1
|
||||
CREATE DATABASE other_db3;
|
||||
|
||||
|
@ -130,6 +131,7 @@ DROP DATABASE worker_other_db;
|
|||
|
||||
SELECT result FROM run_command_on_all_nodes($$ALTER SYSTEM SET citus.enable_create_database_propagation TO false$$);
|
||||
SELECT result FROM run_command_on_all_nodes($$SELECT pg_reload_conf()$$);
|
||||
SELECT pg_sleep(0.1);
|
||||
|
||||
DROP SCHEMA other_databases;
|
||||
DROP DATABASE other_db1;
|
||||
|
|
Loading…
Reference in New Issue