Skip to content

Commit b16c1e0

Browse files
committed
Improved test result matching for the advanced PGS configuration test.
1 parent ed29a99 commit b16c1e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/support/shared_examples/system_default_postgres.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def install_postgres
164164
sudo_and_log(vm, "service #{service_name} restart")
165165

166166
# Check that the user can create a table in the database
167-
sudo_psql_and_log(vm, '--command="show max_connections" -t', 'postgres', ' |grep "123"')
167+
sudo_psql_and_expect_result(vm, '--command="show max_connections" -t', '123', 'postgres')
168168

169169
cleanup_class = 'class {"postgresql_tests::system_default::test_pgconf_include_cleanup": }'
170170
sudo_and_log(vm, "puppet apply -e '#{cleanup_class}'")

0 commit comments

Comments
 (0)