Skip to content

Commit

Permalink
Stop test-postgres-server per -m fast
Browse files Browse the repository at this point in the history
PostgreSQL-9.3 on Ubuntu fails to stop probably due to lingering connections.
Using -m fast to shutdown nonetheless.
  • Loading branch information
larskanis committed Sep 1, 2023
1 parent cac1c24 commit d2f231f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def connect
def teardown
trace "Tearing down test database for #{@name}"

log_and_run @logfile, pg_bin_path('pg_ctl'), '-D', @test_pgdata.to_s, 'stop'
log_and_run @logfile, pg_bin_path('pg_ctl'), '-D', @test_pgdata.to_s, '-m', 'fast', 'stop'
end

def pg_bin_path(cmd)
Expand Down

0 comments on commit d2f231f

Please sign in to comment.