1
0
Fork 0
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:
MSP-Greg 2020-09-09 22:24:48 -05:00
parent 6729b532b9
commit c38d52e0ce
No known key found for this signature in database
GPG key ID: D688DA4A77D8FA18
3 changed files with 2 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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