From 98e314550c3264de02daf3686585683a80dc63c6 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 3 Feb 2010 03:21:25 +0000 Subject: [PATCH] Fix timing-sensitive regression test result I just created :-( --- the DROP USER at the end of the cluster.sql test could fail, if the temp table created in the previous session hadn't finished getting dropped. Unluckily, I didn't see this in several repetitions of the parallel regression tests, but it's popping up on quite a few buildfarm machines. --- src/test/regress/expected/cluster.out | 1 + src/test/regress/sql/cluster.sql | 1 + 2 files changed, 2 insertions(+) diff --git a/src/test/regress/expected/cluster.out b/src/test/regress/expected/cluster.out index 23d0a3cd50..96bd8164fa 100644 --- a/src/test/regress/expected/cluster.out +++ b/src/test/regress/expected/cluster.out @@ -446,6 +446,7 @@ select * from clstr_temp; 2 | two (2 rows) +drop table clstr_temp; -- clean up \c - DROP TABLE clustertest; diff --git a/src/test/regress/sql/cluster.sql b/src/test/regress/sql/cluster.sql index f3f7a24810..3dea2e4b29 100644 --- a/src/test/regress/sql/cluster.sql +++ b/src/test/regress/sql/cluster.sql @@ -192,6 +192,7 @@ create temp table clstr_temp (col1 int primary key, col2 text); insert into clstr_temp values (2, 'two'), (1, 'one'); cluster clstr_temp using clstr_temp_pkey; select * from clstr_temp; +drop table clstr_temp; -- clean up \c - -- 2.11.0