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