From: Tom Lane Date: Sat, 25 Mar 2017 21:25:28 +0000 (-0400) Subject: Remember to drop roles created by regression tests. X-Git-Tag: REL_10_BETA1~510 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2cdc1389a25bc62b36a6f83d5d095acb99e3277c;p=postgresql Remember to drop roles created by regression tests. Commit e3920ac82 created "regress_subscription_user2" in subscription.sql, but forgot to drop it, causing the regression tests to fail if run twice without re-initdb'ing. --- diff --git a/src/test/regress/expected/subscription.out b/src/test/regress/expected/subscription.out index 41f8def2f7..8760d5970a 100644 --- a/src/test/regress/expected/subscription.out +++ b/src/test/regress/expected/subscription.out @@ -119,4 +119,5 @@ DROP SUBSCRIPTION testsub NODROP SLOT; -- fail ERROR: subscription "testsub" does not exist RESET SESSION AUTHORIZATION; DROP ROLE regress_subscription_user; +DROP ROLE regress_subscription_user2; DROP ROLE regress_subscription_user_dummy; diff --git a/src/test/regress/sql/subscription.sql b/src/test/regress/sql/subscription.sql index 2db97db2f5..7bdc2b3503 100644 --- a/src/test/regress/sql/subscription.sql +++ b/src/test/regress/sql/subscription.sql @@ -92,4 +92,5 @@ DROP SUBSCRIPTION testsub NODROP SLOT; -- fail RESET SESSION AUTHORIZATION; DROP ROLE regress_subscription_user; +DROP ROLE regress_subscription_user2; DROP ROLE regress_subscription_user_dummy;