From 6d8aed3c819a70cc6c0694a64f92cc64524e896f Mon Sep 17 00:00:00 2001 From: Jon Rowe Date: Mon, 29 Jun 2020 20:28:04 +0100 Subject: [PATCH] Wrap =~ operator in brackets --- spec/integration/bisect_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/integration/bisect_spec.rb b/spec/integration/bisect_spec.rb index 1e2375fc4a..9c9d82ae20 100644 --- a/spec/integration/bisect_spec.rb +++ b/spec/integration/bisect_spec.rb @@ -45,7 +45,7 @@ def bisect(cli_args, expected_status=nil) it 'does not leave zombie processes', :unless => RSpec::Support::OS.windows? do original_pids = pids() bisect(%W[spec/rspec/core/resources/blocking_pipe_bisect_spec.rb_], 1) - sleep 0.1 while (extra_pids = pids() - original_pids).join =~ /[RE]/i + sleep 0.1 while ((extra_pids = pids() - original_pids).join =~ /[RE]/i) expect(extra_pids.join).to_not include "Z" end end