Skip to content

Commit

Permalink
Changed plain messages Option to received_messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Gianfranco committed Jun 30, 2011
1 parent 5fc4b20 commit e413f0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/frame_axiom.erl
Expand Up @@ -100,9 +100,9 @@ snapshot(Ets,process,replaced_named) ->
Current = named_processes_with_pid(),
ets:insert(Ets,{{process,replaced_named},Current}),
Ets;
snapshot(Ets,process,messages) ->
snapshot(Ets,process,received_messages) ->
MessagesWithPids = messages_with_pids(),
ets:insert(Ets,{{process,messages},MessagesWithPids}),
ets:insert(Ets,{{process,received_messages},MessagesWithPids}),
Ets.

diff(Ets,[X]) ->
Expand Down Expand Up @@ -198,9 +198,9 @@ diff(Ets,process,replaced_named) ->
[{replaced,N}||{P,N} <- CurrentNamedWithPid,
proplists:get_value(P,RecordedWithPid) == undefined andalso
lists:keyfind(N,2,RecordedWithPid) =/= false];
diff(Ets,process,messages) ->
diff(Ets,process,received_messages) ->
MessagesWithPids = messages_with_pids(),
Key = {process,messages},
Key = {process,received_messages},
[{Key,RecordedWithPid}] = ets:lookup(Ets,Key),
lists:foldl(
fun({RecPid,RecMessages},Acc) ->
Expand Down
2 changes: 1 addition & 1 deletion test/frame_axiom_tests.erl
Expand Up @@ -42,7 +42,7 @@ process_death_diff_test() ->
?assertEqual([{died,Pid}],frame_axiom:diff(Ref,[{process,Options}])).

process_mailbox_received_test() ->
Options = [messages],
Options = [received_messages],
Pid = synchronoulsy_start_a_process(),
Ref = frame_axiom:snapshot([{process,Options}]),
Message = {iMessage,make_ref()},
Expand Down

0 comments on commit e413f0f

Please sign in to comment.