Skip to content

Commit

Permalink
Update dt test for reset-remove semantic
Browse files Browse the repository at this point in the history
And dopping of "add" fro Map API
  • Loading branch information
russelldb committed May 20, 2014
1 parent cfd473a commit 8d2daa6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/verify_dt_converge.erl
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,10 @@ update_2a({BType, map}, Bucket, Client, CMod) ->
fun(S) ->
riakc_set:add_element(<<"Sam">>, S)
end, M),
riakc_map:add({<<"verified">>, flag}, M1)
riakc_map:update({<<"verified">>, flag}, fun(F) ->
riakc_flag:disable(F)
end,
M1)
end,
{BType, Bucket}, ?KEY, ?MODIFY_OPTS).

Expand Down Expand Up @@ -306,7 +309,7 @@ check_4({BType, map}, Bucket, Client, CMod) ->
{{<<"home">>, register}, <<"[email protected]">>}
]},
{{<<"followers">>, counter}, 10},
{{<<"friends">>, set}, [<<"Russell">>, <<"Sam">>]},
{{<<"friends">>, set}, [<<"Sam">>]},
{{<<"verified">>, flag}, false}],
[{pr, 3}, {notfound_ok, false}]).

Expand Down

0 comments on commit 8d2daa6

Please sign in to comment.