Skip to content

Commit

Permalink
drop db between test runs, otherwise migrations might not always pass
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Jan 23, 2025
1 parent 8eebdc2 commit 826555f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/support/acceptance/purge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ def purge_foreman

apache_service_name = ['debian', 'ubuntu'].include?(os[:family]) ? 'apache2' : 'httpd'
on default, "systemctl stop #{apache_service_name}", { :acceptable_exit_codes => [0, 5] }
on default, 'runuser - postgres -c "dropdb foreman"', { :acceptable_exit_codes => [0, 1, 127] }
end

0 comments on commit 826555f

Please sign in to comment.