Skip to content

Commit

Permalink
fixed build failed
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongwencool committed Apr 1, 2020
1 parent 102ac9a commit 32b73a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/eetcd_kv_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ range(Config) ->
%% When limit is set to 0, it is treated as no limit.
CLimit1 = eetcd_kv:with_range_end(eetcd_kv:with_key(Ctx, Kv1), Kv3),
CLimit2 = eetcd_kv:with_top(CLimit1, 'MOD', 'ASCEND'),
{ok, #{header := #{}, more := true, count := 2, kvs := [#{key := Kv1, mod_revision := Mod}]}}
{ok, #{header := #{}, more := false, count := 1, kvs := [#{key := Kv1, mod_revision := Mod}]}}
= eetcd_kv:get(CLimit2),

{ok, #{header := #{}, more := false, count := 2, kvs := [#{key := Kv2}]}}
= eetcd_kv:get(eetcd_kv:with_min_mod_rev(CLimit2, Mod + 1)),
{ok, #{header := #{}, more := false, count := 1, kvs := [#{key := Kv1}]}}
= eetcd_kv:get(eetcd_kv:with_min_mod_rev(CLimit2, Mod)),

%% revision is the point-in-time of the key-value store to use for the range.
%% If revision is less or equal to zero, the range is over the newest key-value store.
Expand Down

0 comments on commit 32b73a4

Please sign in to comment.