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:
commit
c90f203f7a
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue