Skip to content

Commit

Permalink
Merge pull request #1839 from andrykonchin/ak/skip-falcon-in-specs
Browse files Browse the repository at this point in the history
Don't run integration tests on Falcon against TruffleRuby
  • Loading branch information
jkowens committed Nov 15, 2022
2 parents cafaab9 + 42e3eed commit c90f203
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 c90f203

Please sign in to comment.