FIX: Don't reuse redis connections in different threads in tests

Redis connections aren't threadsafe since they have state, (watched
keys).
This commit is contained in:
Daniel Waterworth 2019-08-01 09:49:03 +01:00
parent 7bd93eba3e
commit b76a1df27d
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ describe DistributedMutex do
it "allows only one mutex object to have the lock at a time" do
mutexes = (1..10).map do
DistributedMutex.new(key)
DistributedMutex.new(key, redis: DiscourseRedis.new)
end
x = 0