DEV: Minor test clarification
Replace `(0...3)` for with `3.times`.
This commit is contained in:
parent
bc5daa1466
commit
9bb15efca7
|
@ -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|
|
||||||
|
|
Loading…
Reference in New Issue