Skip to content

Commit da7f548

Browse files
committed
Inline pre_run method that's only used once
1 parent 8f3147b commit da7f548

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

spec/acceptance/server/recovery_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
describe 'postgresql::server::recovery', skip: 'IAC-1286' do
66
describe 'should manage recovery' do
77
before(:all) do
8-
pre_run
8+
LitmusHelper.instance.apply_manifest("class { 'postgresql::server': postgres_password => 'postgres' }", catch_failures: true)
99
end
1010

1111
after(:all) do

spec/spec_helper_acceptance_local.rb

-4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ def export_locales(locale)
2626
LitmusHelper.instance.run_shell('source ~/.bashrc')
2727
end
2828

29-
def pre_run
30-
LitmusHelper.instance.apply_manifest("class { 'postgresql::server': postgres_password => 'postgres' }", catch_failures: true)
31-
end
32-
3329
def postgresql_version
3430
result = LitmusHelper.instance.run_shell('psql --version')
3531
result.stdout.match(%r{\s(\d{1,2}\.\d)})[1]

0 commit comments

Comments
 (0)