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
1 changed files with 1 additions and 1 deletions

View File

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