Permalink
Browse files

tweaking failure stdout printout for assert_messages_received_n_times

  • Loading branch information...
1 parent f735d95 commit 52ed80c8f75d433667864aff762cde5d7144b876 @nruth committed Dec 7, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 nspy.erl
View
@@ -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)).

0 comments on commit 52ed80c

Please sign in to comment.