Skip to content

Commit 3c66e59

Browse files
committed
Fix specs for #567
1 parent c58f327 commit 3c66e59

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/unit/classes/server_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"PGPASSWORD='new-p@s$word-to-set'",
4747
"NEWPASSWD_ESCAPED='$$new-p@s$word-to-set$$'"
4848
],
49-
'unless' => "/usr/bin/psql -h localhost -c 'select 1' > /dev/null",
49+
'unless' => "/usr/bin/psql -h localhost -p 5432 -c 'select 1' > /dev/null",
5050
})
5151
end
5252
end

spec/unit/puppet/provider/postgresql_psql/ruby_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
it "executes with the given port" do
7474
expect(provider).to receive(:run_command).with(["psql",
7575
"-p", "5555",
76-
"-t", "-c", "SELECT something"],
76+
"-t", "-c", "\"SELECT something\""],
7777
"postgres", "postgres")
7878

7979
provider.run_sql_command("SELECT something")

0 commit comments

Comments
 (0)