summaryrefslogtreecommitdiff
path: root/test/fiber/http.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/fiber/http.rb')
-rw-r--r--test/fiber/http.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fiber/http.rb b/test/fiber/http.rb
index e2a007bc84..ad51ae3c76 100644
--- a/test/fiber/http.rb
+++ b/test/fiber/http.rb
@@ -19,7 +19,7 @@ def fetch_topics(topics)
end.resume
end
- Thread.scheduler&.run
+ Thread.fiber_scheduler&.run
return responses
end
@@ -32,7 +32,7 @@ def sweep(repeats: 3, **options)
Thread.new do
Benchmark.realtime do
scheduler = Scheduler.new
- Thread.current.scheduler = scheduler
+ Fiber.set_scheduler scheduler
repeats.times do
Fiber.new(**options) do