mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-06 16:45:29 +00:00
Added a couple of extra tests to ensure expectations.
This commit is contained in:
parent
c0933b45ae
commit
259e631c99
@ -870,6 +870,26 @@ ensure_unacked_and_queue_test_() ->
|
||||
?assertNotEqual([], N456Data),
|
||||
Unacked = proplists:get_value(unacked, N456Data),
|
||||
?assertEqual(0, Unacked)
|
||||
end},
|
||||
|
||||
{"after acks, queues are empty", fun() ->
|
||||
Nodes = N123 ++ N456,
|
||||
Got = lists:map(fun(Node) ->
|
||||
rpc:call(Node, riak_repl2_rtq, all_queues_empty, [])
|
||||
end, Nodes),
|
||||
Expected = [true || _ <- lists:seq(1, length(Nodes))],
|
||||
?assertEqual(Expected, Got)
|
||||
end},
|
||||
|
||||
{"after acks, queues truly are empty. Truly", fun() ->
|
||||
Nodes = N123 ++ N456,
|
||||
Gots = lists:map(fun(Node) ->
|
||||
{Node, rpc:call(Node, riak_repl2_rtq, dumpq, [])}
|
||||
end, Nodes),
|
||||
lists:map(fun({Node, Got}) ->
|
||||
?debugFmt("Checking data from ~p", [Node]),
|
||||
?assertEqual([], Got)
|
||||
end, Gots)
|
||||
end}
|
||||
|
||||
] end}}.
|
||||
|
Loading…
Reference in New Issue
Block a user