summaryrefslogtreecommitdiff
path: root/test/testunit
diff options
context:
space:
mode:
Diffstat (limited to 'test/testunit')
-rw-r--r--test/testunit/test_parallel.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testunit/test_parallel.rb b/test/testunit/test_parallel.rb
index 086764535f..89b5bfa50b 100644
--- a/test/testunit/test_parallel.rb
+++ b/test/testunit/test_parallel.rb
@@ -151,7 +151,7 @@ module TestParallel
rescue Timeout::Error
Process.kill(:KILL, @test_pid) if @test_pid
ensure
- @test_out.close if @test_out
+ @test_out&.close
end
end