Skip to content

Commit 420fefc

Browse files
committed
Raise on timeout waiting for port
1 parent d25845c commit 420fefc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/mix/test/mix/tasks/test_test.exs

+7
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,13 @@ defmodule Mix.Tasks.TestTest do
630630
else
631631
receive_until_match(port, expected, acc)
632632
end
633+
after
634+
15_000 ->
635+
raise """
636+
nothing received from port after 15s.
637+
Expected: #{inspect(expected)}
638+
Got: #{inspect(acc)}
639+
"""
633640
end
634641
end
635642

0 commit comments

Comments
 (0)