2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-08 12:06:51 +08:00

DEV: Minor test clarification

Replace `(0...3)` for with `3.times`.
This commit is contained in:
Daniel Waterworth 2019-08-05 12:16:44 +01:00
parent bc5daa1466
commit 9bb15efca7

View file

@ -100,7 +100,7 @@ describe DistributedMutex do
context "executions" do
it "should not allow critical sections to overlap" do
connections = (0...3).map { DiscourseRedis.new }
connections = 3.times.map { DiscourseRedis.new }
scenario =
Concurrency::Scenario.new do |execution|