Skip to content

Commit

Permalink
make rubocop happy is my only desire
Browse files Browse the repository at this point in the history
  • Loading branch information
wholien committed Jan 30, 2024
1 parent ec6fd1e commit fd1450f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/lint/value_types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,14 @@ def test_expireat_keywords

def test_expiretime
target_version "7.0.0" do

r.set("foo", "blar")
assert_equal -1, r.expiretime("foo")
assert_equal(-1, r.expiretime("foo"))

exp_time = (Time.now + 2).to_i
r.expireat("foo", exp_time)
assert_equal exp_time, r.expiretime("foo")

assert_equal -2, r.expiretime("key-that-exists-not")
assert_equal(-2, r.expiretime("key-that-exists-not"))
end
end

Expand Down

0 comments on commit fd1450f

Please sign in to comment.