Skip to content

Commit

Permalink
add tcl test for defrag_supported
Browse files Browse the repository at this point in the history
Signed-off-by: Sher Sun <sher.sun@huawei.com>
  • Loading branch information
Sher Sun committed May 2, 2024
1 parent 2466cb4 commit 1854578
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/unit/other.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ start_server {tags {"other"}} {
}
}

test {INFO MEMORY: defrag_supported} {
if {[string match {*jemalloc*} [s mem_allocator]]} {
set info_mem [r info memory]
assert_equal [getInfoProperty $info_mem defrag_supported] { yes}
}
}

test {SAVE - make sure there are all the types as values} {
# Wait for a background saving in progress to terminate
waitForBgsave r
Expand Down

0 comments on commit 1854578

Please sign in to comment.