diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2021-06-26 10:17:26 +1200 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2021-07-01 11:23:03 +1200 |
commit | 42130a64f02294dc8025af3a51bda518c67ab33d (patch) | |
tree | e81c181770e4cc9d3e87e960a25a870e9a4774f5 /bootstraptest | |
parent | 9c9531950c007872d7726f050a1dc0cb6f8f0490 (diff) | |
download | ruby-42130a64f02294dc8025af3a51bda518c67ab33d.tar.gz |
Replace copy coroutine with pthread implementation.
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_fiber.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstraptest/test_fiber.rb b/bootstraptest/test_fiber.rb index 35e1bf6851..2614dd13bf 100644 --- a/bootstraptest/test_fiber.rb +++ b/bootstraptest/test_fiber.rb @@ -19,12 +19,12 @@ assert_equal %q{ok}, %q{ } assert_equal %q{ok}, %q{ - 10_000.times.collect{Fiber.new{}} + 100.times.collect{Fiber.new{}} :ok } assert_equal %q{ok}, %q{ - fibers = 100.times.collect{Fiber.new{Fiber.yield}} + fibers = 1000.times.collect{Fiber.new{Fiber.yield}} fibers.each(&:resume) fibers.each(&:resume) :ok |