diff options
| author | Luke Gruber <luke.gruber@shopify.com> | 2025-07-11 19:16:58 -0400 |
|---|---|---|
| committer | John Hawthorn <john@hawthorn.email> | 2025-07-17 11:21:01 -0700 |
| commit | 815eb58fcef40d5ffedbb36f5de08fa6e06cc9b0 (patch) | |
| tree | 0496828ac0cd57b3f0c18dc7070d4b0b40abae43 | |
| parent | c1c9deea832bb058b5a03e475ad7de6160cd5cd4 (diff) | |
Fix btest in ractor_test.rb that can lead timeout of the test
It could also potentially lead to an out of memory error.
| -rw-r--r-- | bootstraptest/test_ractor.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bootstraptest/test_ractor.rb b/bootstraptest/test_ractor.rb index 1c2a4b0b8e..14e78bd00b 100644 --- a/bootstraptest/test_ractor.rb +++ b/bootstraptest/test_ractor.rb @@ -1455,11 +1455,19 @@ assert_equal "ok", %q{ loop do 10_000.times.map { Object.new } port << Time.now + Ractor.receive end end end - 1_000.times { port.receive } + 100.times { + workers.each do + port.receive + end + workers.each do |w| + w.send(nil) + end + } "ok" } if !yjit_enabled? && ENV['GITHUB_WORKFLOW'] != 'ModGC' # flaky |
