Skip to content

Commit

Permalink
Don't run integration specs on falcon against TruffleRuby
Browse files Browse the repository at this point in the history
  • Loading branch information
andrykonchin committed Nov 15, 2022
1 parent cafaab9 commit 42e3eed
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/integration_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,15 @@ def self.extend_object(obj)
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
Expand Down

0 comments on commit 42e3eed

Please sign in to comment.