Skip to content

Commit

Permalink
Ensure the scheduler is cleaned up on exit.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jul 28, 2023
1 parent cd53615 commit 508cce3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/async/scheduler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@

expect(task).to be(:running?)
expect(duration).to be <= 0.1
ensure
Fiber.set_scheduler(nil)
end
end

Expand Down

0 comments on commit 508cce3

Please sign in to comment.