From 42e3eed9cc9e574513aae3e925e30e80741190d2 Mon Sep 17 00:00:00 2001 From: Andrew Konchin Date: Mon, 14 Nov 2022 15:51:26 +0200 Subject: [PATCH] Don't run integration specs on falcon against TruffleRuby --- test/integration_helper.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/integration_helper.rb b/test/integration_helper.rb index aed31a69..7dfbcbdd 100644 --- a/test/integration_helper.rb +++ b/test/integration_helper.rb @@ -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