Skip to content

Commit

Permalink
Avoid entering io_write hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Nov 6, 2024
1 parent 7851dd9 commit 4a07cef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/async/task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,9 @@ def sleep_forever
with "#result" do
it "does not raise exception" do
task = reactor.async do
# Prevent `io_write` hook being invoked.
expect(Console).to receive(:warn).and_return(nil)

raise "The space time converter has failed."
end

Expand Down

0 comments on commit 4a07cef

Please sign in to comment.