Skip to content

Commit

Permalink
fix tuple-list-tuple conversion-related eunit tests once again
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Zavada committed Apr 15, 2016
1 parent 467d814 commit 549d98b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
12 changes: 6 additions & 6 deletions src/riak_kv_qry.erl
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,12 @@ describe_table_columns_test() ->
" f, s, t))")),
Res = do_describe(DDL),
?assertMatch(
{ok, [_, _,
[{<<"f">>, <<"varchar">>, false, 1, 1},
{<<"s">>, <<"varchar">>, false, 2, 2},
{<<"t">>, <<"timestamp">>, false, 3, 3},
{<<"w">>, <<"sint64">>, false, [], []},
{<<"p">>, <<"double">>, true, [], []}]]},
{ok, {_, _,
[[<<"f">>, <<"varchar">>, false, 1, 1],
[<<"s">>, <<"varchar">>, false, 2, 2],
[<<"t">>, <<"timestamp">>, false, 3, 3],
[<<"w">>, <<"sint64">>, false, [], []],
[<<"p">>, <<"double">>, true, [], []]]}},
Res).

validate_make_insert_row_basic_test() ->
Expand Down
4 changes: 1 addition & 3 deletions src/riak_kv_qry_worker.erl
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,8 @@ prepare_final_results2(#riak_sel_clause_v1{col_return_types = ColTypes,

prepare_final_results_test() ->
Rows = [[12, <<"windy">>], [13, <<"windy">>]],
RowsAsTuples = [{12, <<"windy">>}, {13, <<"windy">>}],
% IndexedChunks = [{1, Rows}],
?assertEqual(
{[<<"a">>, <<"b">>], [sint64, varchar], RowsAsTuples},
{[<<"a">>, <<"b">>], [sint64, varchar], Rows},
prepare_final_results(
#state{
qry =
Expand Down

0 comments on commit 549d98b

Please sign in to comment.