Skip to content

Commit

Permalink
Inline pre_run method that's only used once
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Aug 29, 2023
1 parent c602c88 commit 8090f54
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion spec/acceptance/server/recovery_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
describe 'postgresql::server::recovery', skip: 'IAC-1286' do
describe 'should manage recovery' do
before(:all) do
pre_run
LitmusHelper.instance.apply_manifest("class { 'postgresql::server': postgres_password => 'postgres' }", catch_failures: true)
end

after(:all) do
Expand Down
4 changes: 0 additions & 4 deletions spec/spec_helper_acceptance_local.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ def export_locales(locale)
LitmusHelper.instance.run_shell('source ~/.bashrc')
end

def pre_run
LitmusHelper.instance.apply_manifest("class { 'postgresql::server': postgres_password => 'postgres' }", catch_failures: true)
end

def postgresql_version
result = LitmusHelper.instance.run_shell('psql --version')
result.stdout.match(%r{\s(\d{1,2}\.\d)})[1]
Expand Down

0 comments on commit 8090f54

Please sign in to comment.