Increase sleep time in a regression test to give Valgrind tests enough time

pull/1854/head
metdos 2017-12-04 12:49:50 +02:00
parent 98522d8d7f
commit 12d5974d97
4 changed files with 8 additions and 4 deletions

View File

@ -132,7 +132,8 @@ SELECT pg_reload_conf();
t
(1 row)
SELECT pg_sleep(0.2);
-- Sleep 1 second to give Valgrind enough time to clear transactions
SELECT pg_sleep(1);
pg_sleep
----------

View File

@ -250,7 +250,8 @@ SELECT pg_reload_conf();
t
(1 row)
SELECT pg_sleep(0.1);
-- Sleep 1 second to give Valgrind enough time to clear transactions
SELECT pg_sleep(1);
pg_sleep
----------

View File

@ -76,7 +76,8 @@ SELECT count(*) FROM pg_dist_transaction;
-- Test whether auto-recovery runs
ALTER SYSTEM SET citus.recover_2pc_interval TO 10;
SELECT pg_reload_conf();
SELECT pg_sleep(0.2);
-- Sleep 1 second to give Valgrind enough time to clear transactions
SELECT pg_sleep(1);
SELECT count(*) FROM pg_dist_transaction;
ALTER SYSTEM RESET citus.recover_2pc_interval;
SELECT pg_reload_conf();

View File

@ -123,7 +123,8 @@ SELECT count(*) FROM pg_dist_transaction;
-- Test whether auto-recovery runs
ALTER SYSTEM SET citus.recover_2pc_interval TO 10;
SELECT pg_reload_conf();
SELECT pg_sleep(0.1);
-- Sleep 1 second to give Valgrind enough time to clear transactions
SELECT pg_sleep(1);
SELECT count(*) FROM pg_dist_transaction;
ALTER SYSTEM RESET citus.recover_2pc_interval;