Skip to content

Commit edf27ca

Browse files
committed
Attempt to see if specifying IP and port help
We see that the service is listening on 127.0.0.1:5432, so this failure is weird. Maybe looking for a specific IP address and protocol will help?
1 parent b2284f1 commit edf27ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/acceptance/utf8_encoding_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class { 'postgresql::server': }
2424
puts '-------------------------------'
2525
puts LitmusHelper.instance.run_shell('systemctl status postgresql*').stdout
2626
puts '-------------------------------'
27-
expect(port(5432)).to be_listening
27+
expect(port(5432)).to be_listening.on('127.0.0.1').with('tcp')
2828
expect(psql('--command="\l" postgres', 'postgres').stdout).to match(%r{List of databases})
2929
expect(psql('--command="SELECT pg_encoding_to_char(encoding) FROM pg_database WHERE datname=\'template1\'"').stdout).to match(%r{UTF8})
3030
end

0 commit comments

Comments
 (0)