Merge pull request #1854 from citusdata/fix_valgrind_tests

Increase sleep time in a regression test to give Valgrind tests enough time
pull/1859/head
Metin Döşlü 2017-12-05 16:36:34 +03:00 committed by GitHub
commit 75eff340e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;