mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:11:38 +08:00
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
|
||||
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|
|
||||
|
|
Loading…
Reference in New Issue
Block a user