Skip to content

Commit

Permalink
it does not hurt, but ok
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-binbin committed Jul 12, 2023
1 parent 7585a91 commit 507f4ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/gocase/unit/type/incr/incr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func TestIncr(t *testing.T) {
})

t.Run("DECRBY negation overflow", func(t *testing.T) {
require.NoError(t, rdb.Do(ctx, "SET", "foo", "bar").Err())
require.NoError(t, rdb.Do(ctx, "SET", "foo", "0").Err())
util.ErrorRegexp(t, rdb.Do(ctx, "DECRBY", "foo", "-9223372036854775808").Err(), ".*decrement would overflow.*")
})

Expand Down

0 comments on commit 507f4ec

Please sign in to comment.