aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/module/fixtures/repeated_concurrent_autoload.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/module/fixtures/repeated_concurrent_autoload.rb')
-rw-r--r--spec/ruby/core/module/fixtures/repeated_concurrent_autoload.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/ruby/core/module/fixtures/repeated_concurrent_autoload.rb b/spec/ruby/core/module/fixtures/repeated_concurrent_autoload.rb
new file mode 100644
index 0000000000..32b770e6cf
--- /dev/null
+++ b/spec/ruby/core/module/fixtures/repeated_concurrent_autoload.rb
@@ -0,0 +1,8 @@
+prev_value = ScratchPad.recorded.increment_and_get
+eval <<-RUBY_EVAL
+ module Mod#{prev_value}
+ sleep(0.05)
+ def self.foo
+ end
+ end
+RUBY_EVAL