diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2022-05-09 10:20:25 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2022-05-09 10:20:25 +0900 |
commit | df0bcb3385746e010e100dfb4e66a25dddc2c8fd (patch) | |
tree | 6d7aaa2e11b49f1f167e7a3f1f06e00a2e6b50a8 /test/fiber | |
parent | dc9a13abeef5a2b936fbb55edc112b8b382a05e7 (diff) | |
download | ruby-df0bcb3385746e010e100dfb4e66a25dddc2c8fd.tar.gz |
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)
^^^^^^^^^^
```
Diffstat (limited to 'test/fiber')
-rw-r--r-- | test/fiber/test_scheduler.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |