From 9bb15efca7e1568d5ad95725b13f8bc4f067cc40 Mon Sep 17 00:00:00 2001 From: Daniel Waterworth Date: Mon, 5 Aug 2019 12:16:44 +0100 Subject: [PATCH] DEV: Minor test clarification Replace `(0...3)` for with `3.times`. --- spec/components/distributed_mutex_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/components/distributed_mutex_spec.rb b/spec/components/distributed_mutex_spec.rb index ddce89abe66..e04727a8a85 100644 --- a/spec/components/distributed_mutex_spec.rb +++ b/spec/components/distributed_mutex_spec.rb @@ -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|