1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

Merge pull request #1839 from andrykonchin/ak/skip-falcon-in-specs

Don't run integration tests on Falcon against TruffleRuby
This commit is contained in:
Jordan Owens 2022-11-15 16:02:55 -05:00 committed by GitHub
commit c90f203f7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -122,7 +122,15 @@ module IntegrationHelper
super
base_port = 5000 + Process.pid % 100
Sinatra::Base.server.each_with_index do |server, index|
servers = Sinatra::Base.server.dup
# TruffleRuby doesn't support `Fiber.set_scheduler` yet
unless Fiber.respond_to?(:set_scheduler)
warn "skip falcon server"
servers.delete('falcon')
end
servers.each_with_index do |server, index|
Server.run(server, base_port+index)
end
end