Increase wait times to account for slowness of CI?
parent
431e05284a
commit
78e44eeb81
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue