diff options
author | Daniel Gustafsson | 2022-02-11 19:54:44 +0000 |
---|---|---|
committer | Daniel Gustafsson | 2022-02-11 19:54:44 +0000 |
commit | 549ec201d6132b7c7ee11ee90a4e02119259ba5b (patch) | |
tree | 44c1669ef24c66233c16b2fa77aff148596f67a7 /src/test/subscription/t/021_twophase.pl | |
parent | 751b8d23b788580bbff7463e3959f9a92a95b28a (diff) |
Replace Test::More plans with done_testing
Rather than doing manual book keeping to plan the number of tests to run
in each TAP suite, conclude each run with done_testing() summing up the
the number of tests that ran. This removes the need for maintaning and
updating the plan count at the expense of an accurate count of remaining
during the test suite runtime.
This patch has been discussed a number of times, often in the context of
other patches which updates tests, so a larger number of discussions can
be found in the archives.
Reviewed-by: Julien Rouhaud <[email protected]>
Reviewed-by: Dagfinn Ilmari Mannsåker <[email protected]>
Reviewed-by: Tom Lane <[email protected]>
Reviewed-by: Michael Paquier <[email protected]>
Reviewed-by: Kyotaro Horiguchi <[email protected]>
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/test/subscription/t/021_twophase.pl')
-rw-r--r-- | src/test/subscription/t/021_twophase.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/subscription/t/021_twophase.pl b/src/test/subscription/t/021_twophase.pl index 88ef341825b..aacc0fcf462 100644 --- a/src/test/subscription/t/021_twophase.pl +++ b/src/test/subscription/t/021_twophase.pl @@ -6,7 +6,7 @@ use strict; use warnings; use PostgreSQL::Test::Cluster; use PostgreSQL::Test::Utils; -use Test::More tests => 24; +use Test::More; ############################### # Setup @@ -359,3 +359,5 @@ is($result, qq(0), 'check replication origin was dropped on subscriber'); $node_subscriber->stop('fast'); $node_publisher->stop('fast'); + +done_testing(); |