Increase wait times to account for slowness of CI?

pull/1184/head
Rick Carlino 2020-03-31 11:53:18 -05:00
parent 431e05284a
commit 78e44eeb81
1 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ defmodule Helpers do
# Maybe I could use `start_supervised`?
# https://hexdocs.pm/ex_unit/ExUnit.Callbacks.html#start_supervised/2
@wait_time 15
@wait_time 30
# Base case: We have a pid
def wait_for(pid) when is_pid(pid), do: check_on_mbox(pid)
# Failure case: We failed to find a pid for a module.
@ -38,9 +38,9 @@ defmodule Helpers do
end
# Exit recursive loop (mbox is clear)
defp wait(_, {:message_queue_len, 0}), do: Process.sleep(@wait_time * 3)
defp wait(_, {:message_queue_len, 0}), do: Process.sleep(@wait_time * 4)
# Exit recursive loop (pid is dead)
defp wait(_, nil), do: Process.sleep(@wait_time * 3)
defp wait(_, nil), do: Process.sleep(@wait_time * 4)
# Continue recursive loop
defp wait(pid, {:message_queue_len, _n}), do: check_on_mbox(pid)