Use the INDEX_RESULTS macro instead of matching on the tuple.

This commit is contained in:
Sean Cribbs 2013-10-01 10:00:35 -05:00
parent 633886dd25
commit 005eb52235

View File

@ -4,6 +4,7 @@
-export([confirm/0]). -export([confirm/0]).
-include_lib("eunit/include/eunit.hrl"). -include_lib("eunit/include/eunit.hrl").
-include_lib("riakc/include/riakc.hrl").
confirm() -> confirm() ->
application:start(crypto), application:start(crypto),
@ -297,7 +298,7 @@ confirm() ->
"default", "TO", "user"]]), "default", "TO", "user"]]),
%% don't actually have any indexes %% don't actually have any indexes
?assertMatch({ok, {index_results_v1, [], _, _}}, ?assertMatch({ok, ?INDEX_RESULTS{keys=[]}},
riakc_pb_socket:get_index(PB, <<"hello">>, riakc_pb_socket:get_index(PB, <<"hello">>,
{binary_index, {binary_index,
"name"}, "name"},