i am running test cases using rspec . i am using docker for my application so the command which i am using for running spec is as below
sudo docker-compose run -e "RAILS_ENV=test" rails spec SPEC=./spec/requests/create_spec.rb
i have added below configuration for simplecov gem
SimpleCov.start 'rails' do
The issue is that when test coverage is more than 50% rspec just hangs and when its coverage is less than 50% it works without issue. i check the number of process running when script hangs and found below fishy thing.
root 9490 2 0 20:45 ? 00:00:00 [kworker/3:1]
root 9493 6648 0 20:45 pts/18 00:00:00 sudo docker-compose run -e RAILS_ENV=test rails spec SPEC=./spec/requests/create_spec.rb
root 9494 9493 0 20:45 pts/18 00:00:00 docker-compose run -e RAILS_ENV=test rails spec SPEC=./spec/requests/create_spec.rb
root 9495 9494 0 20:45 pts/18 00:00:00 docker-compose run -e RAILS_ENV=test rails spec SPEC=./spec/requests/create_spec.rb
if you can see from above process with id 9493 was initiated by me but i don't know why and from where the processes with id 9494 and 9495 are initiated? is this the reason the script hangs?