1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

[CI] Skip TestPumaServer#test_chunked_keep_alive_two_back_to_back on TruffleRuby

This commit is contained in:
MSP-Greg 2022-05-30 12:26:52 -05:00
parent 1dc1dec372
commit f59887602c
No known key found for this signature in database
GPG key ID: D688DA4A77D8FA18
2 changed files with 3 additions and 1 deletions

View file

@ -118,11 +118,12 @@ module TestSkips
SIGNAL_LIST = Signal.list.keys.map(&:to_sym) - (Puma.windows? ? [:INT, :TERM] : [])
JRUBY_HEAD = Puma::IS_JRUBY && RUBY_DESCRIPTION =~ /SNAPSHOT/
JRUBY_HEAD = Puma::IS_JRUBY && RUBY_DESCRIPTION.include?('SNAPSHOT')
DARWIN = RUBY_PLATFORM.include? 'darwin'
TRUFFLE = RUBY_ENGINE == 'truffleruby'
TRUFFLE_HEAD = TRUFFLE && RUBY_DESCRIPTION.include?('-dev-')
# usage: skip_unless_signal_exist? :USR2
def skip_unless_signal_exist?(sig, bt: caller)

View file

@ -885,6 +885,7 @@ EOF
end
def test_chunked_keep_alive_two_back_to_back
skip("Fails on TruffleRuby (not head)") unless !TRUFFLE || Gem::Version.new(RUBY_ENGINE_VERSION) > Gem::Version.new('22.1')
body = nil
content_length = nil
server_run { |env|