Skip to content

Commit

Permalink
Fix another expired test
Browse files Browse the repository at this point in the history
  • Loading branch information
richfitz committed Nov 29, 2023
1 parent ee458e8 commit 0d6caa9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/testthat/test-zzz-commands-generic.R
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ test_that("PEXPIREAT", {
on.exit(con$DEL(key))

con$SET(key, "Hello")
expect_equal(con$PEXPIREAT(key, 1655555555005), 1)
t <- as.integer(con$TIME()[[1]])
expect_equal(con$EXPIREAT(key, t + 1000000000), 1)
expect_gt(con$TTL(key), 0)
expect_gt(con$PTTL(key), 0)
})
Expand Down

0 comments on commit 0d6caa9

Please sign in to comment.