From df0bcb3385746e010e100dfb4e66a25dddc2c8fd Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Mon, 9 May 2022 10:20:25 +0900 Subject: [PATCH] test/fiber/test_scheduler.rb: Remove the test file from $LOADED_FEATURES to prevent the following failure on `make test-all --repeat-count=2` http://ci.rvm.jp/results/trunk-repeat20-asserts@phosphorus-docker/3957774 ``` 1) Error: TestFiberScheduler#test_autoload: NameError: uninitialized constant TestFiberSchedulerAutoload Object.const_get(:TestFiberSchedulerAutoload) ^^^^^^^^^^ ``` --- test/fiber/test_scheduler.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/fiber/test_scheduler.rb b/test/fiber/test_scheduler.rb index 08ac386c29..f1030ea3fa 100644 --- a/test/fiber/test_scheduler.rb +++ b/test/fiber/test_scheduler.rb @@ -121,6 +121,7 @@ class TestFiberScheduler < Test::Unit::TestCase thread.join ensure + $LOADED_FEATURES.delete(File.expand_path("autoload.rb", __dir__)) Object.send(:remove_const, :TestFiberSchedulerAutoload) end end