Skip to content

Commit c99557f

Browse files
committed
better reporting of location of failed test
1 parent e063489 commit c99557f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mirrored_supervisor_tests.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ test_no_migration_on_shutdown() ->
158158
try
159159
call(worker, ping),
160160
exit(worker_should_not_have_migrated)
161-
catch exit:{timeout_waiting_for_server, _} ->
161+
catch exit:{timeout_waiting_for_server, _, _} ->
162162
ok
163163
end
164164
end, [evil, good]).
@@ -248,7 +248,7 @@ get_group(Group) ->
248248
call(Id, Msg) -> call(Id, Msg, 1000, 100).
249249

250250
call(Id, Msg, 0, _Decr) ->
251-
exit({timeout_waiting_for_server, {Id, Msg}});
251+
exit({timeout_waiting_for_server, {Id, Msg}, erlang:get_stacktrace()});
252252

253253
call(Id, Msg, MaxDelay, Decr) ->
254254
try

0 commit comments

Comments
 (0)