From: Tatsuo Ishii Date: Wed, 11 Jul 2018 01:16:07 +0000 (+0900) Subject: Try to reduce the chance of regression 006.memcache failure. X-Git-Tag: V4_0_0_ALPHA1~43 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=27a00560b098868ccc2ac893b76732a51006ac9b;p=pgpool2.git Try to reduce the chance of regression 006.memcache failure. It seems the occasional failure of the test is caused by replication lag. The script tries to read tables from standby but it returns a table not existing error. So insert pg_sleep() after creation of tables. --- diff --git a/src/test/regression/tests/006.memqcache/test.sh b/src/test/regression/tests/006.memqcache/test.sh index 7f81e1f67..02566d338 100755 --- a/src/test/regression/tests/006.memqcache/test.sh +++ b/src/test/regression/tests/006.memqcache/test.sh @@ -43,7 +43,7 @@ CREATE TABLE t1 (i int); CREATE TABLE black_t (i int); CREATE VIEW normal_v AS SELECT * FROM t1; CREATE VIEW white_v AS SELECT * FROM t1; - +SELECT pg_sleep(2); -- Sleep for a while to make sure object creations are replicated SELECT * FROM t1; SELECT * FROM t1; SELECT * FROM black_t;