From 46615ac0998854099d1b47b44a01f18e58dffba9 Mon Sep 17 00:00:00 2001 From: John Sully Date: Sun, 22 Oct 2023 03:47:53 +0000 Subject: [PATCH] Fix test --- tests/unit/maxmemory.tcl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/maxmemory.tcl b/tests/unit/maxmemory.tcl index d1db6cc57..dbf3e5018 100644 --- a/tests/unit/maxmemory.tcl +++ b/tests/unit/maxmemory.tcl @@ -182,6 +182,8 @@ proc test_slave_buffers {test_name cmd_count payload_len limit_memory pipeline} fail "Replication not started." } + after 100 + # measure used memory after the slave connected and set maxmemory set orig_used [s -1 used_memory] set orig_client_buf [s -1 mem_clients_normal]