Permalink
Browse files

sort the lists to make sure all keys exist

  • Loading branch information...
1 parent 441aa4e commit a0161388321c93d610556dc3caea4d9a2a90f818 joewilliams committed May 31, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/erldis_tests.erl
View
@@ -29,7 +29,8 @@ basic_test() ->
erldis:set(Client,<<"foo1">>,<<"bar">>),
erldis:set(Client,<<"foo2">>,<<"bar">>),
erldis:set(Client,<<"foo3">>,<<"bar">>),
- ?assertEqual([<<"foo">>,<<"foo1">>,<<"foo2">>,<<"foo3">>], erldis:keys(Client, <<"f*">>)),
+ ?assertEqual(lists:sort([<<"foo">>,<<"foo1">>,<<"foo2">>,<<"foo3">>]),
+ lists:sort(erldis:keys(Client, <<"f*">>))),
erldis:set(Client,<<"quux">>,<<"ohai">>),
?assertEqual([<<"quux">>], erldis:keys(Client, <<"q*">>)),

0 comments on commit a016138

Please sign in to comment.