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

Skip falcon only for TruffleRuby

This commit is contained in:
Andrew Konchin 2022-12-26 13:23:00 +02:00
parent 69ad250ed3
commit b17b050fa8

View file

@ -125,7 +125,7 @@ module IntegrationHelper
servers = Sinatra::Base.server.dup servers = Sinatra::Base.server.dup
# TruffleRuby doesn't support `Fiber.set_scheduler` yet # TruffleRuby doesn't support `Fiber.set_scheduler` yet
unless Fiber.respond_to?(:set_scheduler) if RUBY_ENGINE == "truffleruby" && !Fiber.respond_to?(:set_scheduler)
warn "skip falcon server" warn "skip falcon server"
servers.delete('falcon') servers.delete('falcon')
end end