Skip to content

Commit

Permalink
Attempt to see if specifying IP and port help
Browse files Browse the repository at this point in the history
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?
  • Loading branch information
smortex committed Apr 16, 2024
1 parent b2284f1 commit edf27ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/acceptance/utf8_encoding_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class { 'postgresql::server': }
puts '-------------------------------'
puts LitmusHelper.instance.run_shell('systemctl status postgresql*').stdout
puts '-------------------------------'
expect(port(5432)).to be_listening
expect(port(5432)).to be_listening.on('127.0.0.1').with('tcp')
expect(psql('--command="\l" postgres', 'postgres').stdout).to match(%r{List of databases})
expect(psql('--command="SELECT pg_encoding_to_char(encoding) FROM pg_database WHERE datname=\'template1\'"').stdout).to match(%r{UTF8})
end
Expand Down

0 comments on commit edf27ca

Please sign in to comment.