aboutsummaryrefslogtreecommitdiff
path: root/src/test/modules/test_misc/t/005_timeouts.pl
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/modules/test_misc/t/005_timeouts.pl')
-rw-r--r--src/test/modules/test_misc/t/005_timeouts.pl5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/test/modules/test_misc/t/005_timeouts.pl b/src/test/modules/test_misc/t/005_timeouts.pl
index 53e44016e3a..d9b72191216 100644
--- a/src/test/modules/test_misc/t/005_timeouts.pl
+++ b/src/test/modules/test_misc/t/005_timeouts.pl
@@ -28,10 +28,7 @@ $node->start;
# Check if the extension injection_points is available, as it may be
# possible that this script is run with installcheck, where the module
# would not be installed by default.
-my $result = $node->safe_psql('postgres',
- "SELECT count(*) > 0 FROM pg_available_extensions WHERE name = 'injection_points';"
-);
-if ($result eq 'f')
+if (!$node->check_extension('injection_points'))
{
plan skip_all => 'Extension injection_points not installed';
}