From d527bddb702bd7691b55e5c1bc997d60402465d9 Mon Sep 17 00:00:00 2001 From: John Sully Date: Sun, 31 Jan 2021 04:33:27 +0000 Subject: [PATCH] Improve multithreaded test reliability Former-commit-id: effa53339cf272ced8f0661bc275628f87be5c73 --- tests/unit/maxmemory.tcl | 4 ++-- tests/unit/obuf-limits.tcl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/maxmemory.tcl b/tests/unit/maxmemory.tcl index 741281cfc..414733d1e 100644 --- a/tests/unit/maxmemory.tcl +++ b/tests/unit/maxmemory.tcl @@ -246,7 +246,7 @@ test_slave_buffers {slave buffer are counted correctly} 1000000 10 0 1 # test again with fewer (and bigger) commands without pipeline, but with eviction test_slave_buffers "replica buffer don't induce eviction" 100000 100 1 0 -start_server {tags {"maxmemory"}} { +start_server {tags {"maxmemory"} overrides {server-threads 1}} { test {client tracking don't cause eviction feedback loop} { r config set maxmemory 0 r config set maxmemory-policy allkeys-lru @@ -308,4 +308,4 @@ start_server {tags {"maxmemory"}} { if {$::verbose} { puts "evicted: $evicted" } } } -}; #run_solo \ No newline at end of file +}; #run_solo diff --git a/tests/unit/obuf-limits.tcl b/tests/unit/obuf-limits.tcl index 456d3ac82..1fbd29ff8 100644 --- a/tests/unit/obuf-limits.tcl +++ b/tests/unit/obuf-limits.tcl @@ -1,4 +1,4 @@ -start_server {tags {"obuf-limits"}} { +start_server {tags {"obuf-limits"} overrides { server-threads 1 }} { test {Client output buffer hard limit is enforced} { r config set client-output-buffer-limit {pubsub 100000 0 0} set rd1 [redis_deferring_client]