CI debug: Possible race condition, again?

final_rc
Rick Carlino 2020-04-13 14:03:45 -05:00
parent a55295f596
commit 37222d09d6
2 changed files with 2 additions and 1 deletions

View File

@ -155,5 +155,6 @@ defmodule AutoSyncChannelTest do
end)
Helpers.wait_for(pid)
Process.sleep(1000)
end
end

View File

@ -27,7 +27,7 @@ defmodule Helpers do
# Maybe I could use `start_supervised`?
# https://hexdocs.pm/ex_unit/ExUnit.Callbacks.html#start_supervised/2
@wait_time 60
@wait_time 180
# 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.