Skip to content

Commit 32b73a4

Browse files
committed
fixed build failed
1 parent 102ac9a commit 32b73a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/eetcd_kv_SUITE.erl

+3-3
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ range(Config) ->
125125
%% When limit is set to 0, it is treated as no limit.
126126
CLimit1 = eetcd_kv:with_range_end(eetcd_kv:with_key(Ctx, Kv1), Kv3),
127127
CLimit2 = eetcd_kv:with_top(CLimit1, 'MOD', 'ASCEND'),
128-
{ok, #{header := #{}, more := true, count := 2, kvs := [#{key := Kv1, mod_revision := Mod}]}}
128+
{ok, #{header := #{}, more := false, count := 1, kvs := [#{key := Kv1, mod_revision := Mod}]}}
129129
= eetcd_kv:get(CLimit2),
130130

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

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

0 commit comments

Comments
 (0)