treasure-data / serverengine

A framework to implement robust multiprocess servers like Unicorn
Apache License 2.0
759 stars 86 forks source link

Fix an unstable test on Windows #117

Closed ashie closed 2 years ago

ashie commented 2 years ago

e.g.) https://github.com/treasure-data/serverengine/runs/4799700979?check_suite_focus=true

  1) ServerEngine::Supervisor when using pipe as command_sender auto restart in limited ratio
     Failure/Error: test_state(:worker_run).should == 3
       expected: 3
            got: 2 (using ==)
     # ./spec/supervisor_spec.rb:200:in `block (4 levels) in <top (required)>'

This is becuase lauching a process on Windows is high cost. But it's not need to be exactly 3 because it tests limiting too frequent restart.

Signed-off-by: Takuro Ashie ashie@clear-code.com