Skip to content

Commit 6d324b2

Browse files
committed
Debug timeout in tests
1 parent 8f49405 commit 6d324b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libs/etest/src/etest.erl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ flush_msg_queue() ->
159159

160160
%% @private
161161
run_test(Test) ->
162+
io:format("~s\n", [Test]),
162163
Parent = self(),
163164
{Pid, Ref} = spawn_opt(
164165
fun() ->
@@ -176,6 +177,8 @@ run_test(Test) ->
176177
Result;
177178
{'DOWN', Ref, process, Pid, Reason} ->
178179
{error, Reason}
180+
after 120000 ->
181+
{error, {timeout, Test}}
179182
end.
180183

181184
do_run_test(Test) ->

0 commit comments

Comments
 (0)