A platform for community discussion. Free, open, simple.
FIX: Don't reuse redis connections in different threads in tests
Daniel Waterworthb76a1df27d96
diff --git a/spec/components/distributed_mutex_spec.rb b/spec/components/distributed_mutex_spec.rbindex 95588c1267a..ddce89abe66 100644--- a/spec/components/distributed_mutex_spec.rb+++ b/spec/components/distributed_mutex_spec.rb@@ -12,7 +12,7 @@ describe DistributedMutex doit "allows only one mutex object to have the lock at a time" domutexes = (1..10).map do- DistributedMutex.new(key)+ DistributedMutex.new(key, redis: DiscourseRedis.new)endx = 0