Skip to content

Commit

Permalink
Removed 'conditional_logic_riak_SUITE' from tests. Fixed conditional …
Browse files Browse the repository at this point in the history
…test to work with Riak.
  • Loading branch information
cabol committed May 28, 2015
1 parent 0da40eb commit fb758ed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 210 deletions.
2 changes: 1 addition & 1 deletion test/conditional_logic_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ do_null_conditional(Module) ->
operators(_Config) ->
lists:foreach(
fun do_operators/1,
sumo_test_utils:people_with_conditional_logic()).
sumo_test_utils:people_with_numeric_sort()).

do_operators(Module) ->
[_, _] = sumo:find_by(Module,
Expand Down
208 changes: 0 additions & 208 deletions test/conditional_logic_riak_SUITE.erl

This file was deleted.

7 changes: 6 additions & 1 deletion test/sumo_test_utils.erl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
, people_with_sort/0
, people_with_conditional_logic/0
, people_with_like/0
, people_with_numeric_sort/0
]).

-spec start_apps() -> ok.
Expand All @@ -25,7 +26,7 @@ all_people() ->

-spec people_with_conditional_logic() -> [atom()].
people_with_conditional_logic() ->
all_people() -- [sumo_test_people_elasticsearch, sumo_test_people_riak].
all_people() -- [sumo_test_people_elasticsearch].

-spec people_with_sort() -> [atom()].
people_with_sort() ->
Expand All @@ -41,3 +42,7 @@ people_with_like() ->
[ sumo_test_people_elasticsearch
, sumo_test_people_mnesia
].

-spec people_with_numeric_sort() -> [atom()].
people_with_numeric_sort() ->
people_with_conditional_logic() -- [sumo_test_people_riak].

0 comments on commit fb758ed

Please sign in to comment.