1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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)
                ^^^^^^^^^^
```
This commit is contained in:
Yusuke Endoh 2022-05-09 10:20:25 +09:00
parent dc9a13abee
commit df0bcb3385

View file

@ -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