@@ -474,11 +474,11 @@ TEST_F(GenericFamilyTest, Restore) {
474
474
0x75 , 0x59 , 0x6d , 0x10 , 0x04 , 0x3f , 0x5c };
475
475
auto resp = Run ({" set" , " exiting-key" , " 1234" });
476
476
EXPECT_EQ (resp, " OK" );
477
- // try to restore into existing key - this should failed
477
+ // try to restore into existing key - this should fail
478
478
ASSERT_THAT (Run ({" restore" , " exiting-key" , " 0" , ToSV (STRING_DUMP_REDIS)}),
479
479
ArgType (RespExpr::ERROR));
480
480
481
- // Try restore while setting expiration into the pass
481
+ // Try restore while setting expiration into the past
482
482
// note that value for expiration is just some valid unix time stamp from the pass
483
483
resp = Run (
484
484
{" restore" , " exiting-key" , " 1665476212900" , ToSV (STRING_DUMP_REDIS), " ABSTTL" , " REPLACE" });
@@ -518,11 +518,11 @@ TEST_F(GenericFamilyTest, Restore) {
518
518
resp = Run ({" dump" , " string-key" });
519
519
dump = resp.GetBuf ();
520
520
// this will change the value from "hello world" to "1234"
521
- resp = Run ({" restore" , " string-key" , " 7 " , ToSV (STRING_DUMP_REDIS), " REPLACE" });
521
+ resp = Run ({" restore" , " string-key" , " 7000 " , ToSV (STRING_DUMP_REDIS), " REPLACE" });
522
522
resp = Run ({" get" , " string-key" });
523
523
EXPECT_EQ (" 1234" , resp);
524
524
// check TTL validity
525
- EXPECT_EQ (CheckedInt ({" ttl " , " string-key" }), 7 );
525
+ EXPECT_EQ (CheckedInt ({" pttl " , " string-key" }), 7000 );
526
526
527
527
// Make check about ttl with abs time, restoring back to "hello world"
528
528
resp = Run ({" restore" , " string-key" , absl::StrCat (TEST_current_time_ms + 2000 ), ToSV (dump),
0 commit comments