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