Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Aug 2, 2024
1 parent a882614 commit ee6871b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions test/async/task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
describe Async::Task do
let(:reactor) {Async::Reactor.new}

def after
after do
reactor.close
super
end

with '#annotate' do
Expand Down
4 changes: 1 addition & 3 deletions test/async/wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@
let(:input) {Async::Wrapper.new(pipe.last)}
let(:output) {Async::Wrapper.new(pipe.first)}

def after
after do
input.close unless input.closed?
output.close unless output.closed?

super
end

with '#wait_readable' do
Expand Down

0 comments on commit ee6871b

Please sign in to comment.