mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
test_integration_pumactl.rb - adjust test_phased_restart_cluster for Darwin
With an apparently busy Actions macOS runner, the whole test took 10.3 sec, restart took 6.8. Normal runs take 3 sec or less. Allow macOS test 3 more seconds to complete
This commit is contained in:
parent
6729b532b9
commit
c38d52e0ce
3 changed files with 2 additions and 3 deletions
|
@ -8,6 +8,7 @@ require_relative 'tmp_path'
|
|||
# have their own files, use those instead
|
||||
class TestIntegration < Minitest::Test
|
||||
include TmpPath
|
||||
DARWIN = !!RUBY_PLATFORM[/darwin/]
|
||||
HOST = "127.0.0.1"
|
||||
TOKEN = "xxyyzz"
|
||||
WORKERS = 2
|
||||
|
|
|
@ -4,8 +4,6 @@ require_relative "helpers/integration"
|
|||
class TestIntegrationCluster < TestIntegration
|
||||
parallelize_me!
|
||||
|
||||
DARWIN = !!RUBY_PLATFORM[/darwin/]
|
||||
|
||||
def setup
|
||||
skip NO_FORK_MSG unless HAS_FORK
|
||||
super
|
||||
|
|
|
@ -87,7 +87,7 @@ class TestIntegrationPumactl < TestIntegration
|
|||
|
||||
_, status = Process.wait2(@pid)
|
||||
assert_equal 0, status
|
||||
assert_operator Time.now - start, :<, 5
|
||||
assert_operator Time.now - start, :<, (DARWIN ? 8 : 5)
|
||||
@server = nil
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue