riakc_ts:query returns {ok, Thing}, not just Thing

This commit is contained in:
Andrei Zavada 2016-04-18 21:50:43 +03:00
parent 4119438f52
commit 9615800158

View File

@ -56,7 +56,7 @@ run_tests(PvalP1, PvalP2) ->
?PKEY_P1, ?PKEY_P2, ?PKEY_P3,
?PKEY_P1, ?PKEY_P2, ?PKEY_P3,
?PKEY_P1, ?PKEY_P2, ?PKEY_P3]),
?assertEqual({[], []}, riakc_ts:query(rt:pbc(hd(Cluster)), TableDef)),
?assertEqual({ok, {[], []}}, riakc_ts:query(rt:pbc(hd(Cluster)), TableDef)),
%% Make sure data is written to each node
lists:foreach(fun(Node) -> confirm_all_from_node(Node, Data, PvalP1, PvalP2) end, Cluster),