Skip to content

Commit

Permalink
Avoid running tests with Process.kill('INT', pid) on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hron committed Nov 11, 2017
1 parent df4d627 commit 92374ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/parallel_tests_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ def with_running_processes(count, wait=0.2)
end

describe ".stop_all_processes" do
it 'kills the running child process' do
# Process.kill on Windows doesn't work as expected. It kills all process group instead of just one process.
it 'kills the running child process', unless: Gem.win_platform? do
ParallelTests.pids.send(:clear)
Thread.new do
ParallelTests::Test::Runner.execute_command('sleep 3', 1, 1, {})
Expand Down

0 comments on commit 92374ee

Please sign in to comment.