From 0b8c1968c5e3eca249f64063f08e3d6f259e58ce Mon Sep 17 00:00:00 2001 From: Nick Kezhaya Date: Tue, 22 Oct 2019 10:28:26 -0500 Subject: [PATCH] Keep database alive for 3 minutes --- lib/stripe_mock/database.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stripe_mock/database.ex b/lib/stripe_mock/database.ex index 216b31d..f517f57 100644 --- a/lib/stripe_mock/database.ex +++ b/lib/stripe_mock/database.ex @@ -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)