Skip to content

Commit a49defb

Browse files
committed
Add httl test
1 parent 3662a56 commit a49defb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/lint/hashes.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,5 +236,19 @@ def test_hexpire
236236
assert_in_range(1..4, r.httl("foo", "f1")[0])
237237
end
238238
end
239+
240+
def test_httl
241+
target_version "7.4.0" do
242+
assert [-2], r.httl("foo", "f1")
243+
244+
r.hset("foo", "f1", "v2")
245+
246+
assert [-1], r.httl("foo", "f1")
247+
248+
r.hexpire("foo", 4, "f1")
249+
250+
assert_in_range(1..4, r.httl("foo", "f1")[0])
251+
end
252+
end
239253
end
240254
end

0 commit comments

Comments
 (0)