Skip to content

Commit ea26f80

Browse files
committed
Moved the set-active-expiration to the end in the second test
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
1 parent ff7e059 commit ea26f80

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

tests/unit/hashexpire.tcl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4685,13 +4685,13 @@ start_server {tags {"hashexpire"}} {
46854685
r FLUSHALL
46864686
r DEBUG RELOAD NOSAVE
46874687

4688-
# Re-enable active expiration
4689-
r DEBUG SET-ACTIVE-EXPIRE 1
4690-
46914688
# Verify: key should not exist at all (empty hash skipped)
46924689
assert_equal 0 [r EXISTS myhash]
46934690
assert_equal 0 [r HLEN myhash]
4694-
} {} {needs:debug}
4691+
4692+
# Re-enable active expiration
4693+
r DEBUG SET-ACTIVE-EXPIRE 1
4694+
} {OK} {needs:debug}
46954695

46964696
test {RESTORE loads expired hash fields} {
46974697
r FLUSHALL
@@ -4716,6 +4716,7 @@ start_server {tags {"hashexpire"}} {
47164716
assert_equal 4 [r HLEN myhash]
47174717
assert_equal "permanent_value" [r HGET myhash permanent]
47184718

4719+
# Re-enable active expiration
47194720
r DEBUG SET-ACTIVE-EXPIRE 1
47204721
} {OK} {needs:debug}
47214722
}

0 commit comments

Comments
 (0)