Jamil
2023-09-30 08:40:44 -07:00
committed by GitHub
parent 884022410f
commit 64d9d0421a
2 changed files with 5 additions and 3 deletions

View File

@@ -10,8 +10,8 @@ defmodule Domain.Jobs.Executors.GlobalTest do
test "executes the handler on the interval" do
assert {:ok, _pid} = start_link({{__MODULE__, :send_test_message}, 25, test_pid: self()})
assert_receive {:executed, _pid, time1}, 200
assert_receive {:executed, _pid, time2}, 200
assert_receive {:executed, _pid, time1}, 500
assert_receive {:executed, _pid, time2}, 500
assert time1 < time2
end

View File

@@ -105,7 +105,9 @@ defmodule Domain.Network.Address.QueryTest do
end)
ip1 = Repo.one(queryable)
assert_receive {:ip, ip2}, 1_000
# GitHub Actions is slow
assert_receive {:ip, ip2}, 3_000
assert Enum.sort([ip1, ip2]) ==
Enum.sort([