Skip to content

Commit

Permalink
fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Oct 18, 2024
1 parent 8f5a0b2 commit 80cc667
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/postgresql_upgrade_hook_context_extension_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

it 'removes data_directory from postgresql.conf' do
expect(subject).to be_nil
expect(context).to have_received(:'execute!').with("sed -i '/^data_directory/d' /var/lib/pgsql/data/postgresql.conf", false, true)
expect(context).to have_received(:'execute!').with("sed -i '/^data_directory/d' /var/lib/pgsql/data/postgresql.conf", false, true, {})
end

it 'runs postgresql-setup --upgrade' do
Expand All @@ -75,7 +75,7 @@

it 'runs vacuumdb --all --analyze-in-stages' do
expect(subject).to be_nil
expect(context).to have_received(:'execute!').with("runuser -l postgres -c 'vacuumdb --all --analyze-in-stages'", false, true)
expect(context).to have_received(:'execute!').with("runuser -l postgres -c 'vacuumdb --all --analyze-in-stages'", false, true, {})
end
end
end

0 comments on commit 80cc667

Please sign in to comment.