summaryrefslogtreecommitdiff
path: root/test/lib/minitest
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/minitest')
-rw-r--r--test/lib/minitest/unit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/minitest/unit.rb b/test/lib/minitest/unit.rb
index aa53ef06f6e..b71e8b85b0a 100644
--- a/test/lib/minitest/unit.rb
+++ b/test/lib/minitest/unit.rb
@@ -1008,7 +1008,7 @@ module MiniTest
@report = []
@errors = @failures = @skips = 0
@verbose = false
- @mutex = defined?(Mutex) ? Mutex.new : nil
+ @mutex = Thread::Mutex.new
@info_signal = Signal.list['INFO']
end