Skip to content

Commit

Permalink
Keep database alive for 3 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
nkezhaya committed Oct 22, 2019
1 parent 192b24a commit 0b8c196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stripe_mock/database.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule StripeMock.Database do

@impl true
def init(_) do
{uri, _} = System.cmd("pg_tmp", ["-t"])
{uri, _} = System.cmd("pg_tmp", ["-t", "-w", "180"])

[[username, host, port, database]] =
Regex.scan(~r/(\w+)@([\w\d\.]+)\:(\d+)\/(\w+)/i, uri, capture: :all_but_first)
Expand Down

0 comments on commit 0b8c196

Please sign in to comment.