CI debug: Possible race condition, again?
parent
a55295f596
commit
37222d09d6
|
@ -155,5 +155,6 @@ defmodule AutoSyncChannelTest do
|
||||||
end)
|
end)
|
||||||
|
|
||||||
Helpers.wait_for(pid)
|
Helpers.wait_for(pid)
|
||||||
|
Process.sleep(1000)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -27,7 +27,7 @@ defmodule Helpers do
|
||||||
# Maybe I could use `start_supervised`?
|
# Maybe I could use `start_supervised`?
|
||||||
# https://hexdocs.pm/ex_unit/ExUnit.Callbacks.html#start_supervised/2
|
# https://hexdocs.pm/ex_unit/ExUnit.Callbacks.html#start_supervised/2
|
||||||
|
|
||||||
@wait_time 60
|
@wait_time 180
|
||||||
# Base case: We have a pid
|
# Base case: We have a pid
|
||||||
def wait_for(pid) when is_pid(pid), do: check_on_mbox(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.
|
# Failure case: We failed to find a pid for a module.
|
||||||
|
|
Loading…
Reference in New Issue