Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

tweaking failure stdout printout for assert_messages_received_n_times

  • Loading branch information...
commit 52ed80c8f75d433667864aff762cde5d7144b876 1 parent f735d95
@nruth authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  nspy.erl
View
2  nspy.erl
@@ -80,7 +80,7 @@ assert_message_not_received(Spy, Message) ->
assert_message_received_n_times(Spy, Expected, NTimes) ->
Messages = get_messages_from_spy(Spy),
FilteredMessages = [M || M <- Messages, M == Expected],
- io:format("~n[SPY] expected ~p ~p times, received ~p~n", [Expected, NTimes, FilteredMessages]),
+ io:format("~n[SPY] expected ~p ~p times in received messages:~p,~nfound matches: ~p ~n", [Expected, NTimes, Messages, FilteredMessages]),
?debugFmt("Filtering messages matching ~p from ~p, found ~p~n",[Expected, Messages, FilteredMessages]),
?assertEqual(NTimes, length(FilteredMessages)).
Please sign in to comment.
Something went wrong with that request. Please try again.