From ee6871b20da4befd1a842b53261fa20dee3125df Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Fri, 2 Aug 2024 13:02:10 +1200 Subject: [PATCH] Fix tests. --- test/async/task.rb | 3 +-- test/async/wrapper.rb | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/test/async/task.rb b/test/async/task.rb index ff422b57..fd0556d5 100644 --- a/test/async/task.rb +++ b/test/async/task.rb @@ -16,9 +16,8 @@ describe Async::Task do let(:reactor) {Async::Reactor.new} - def after + after do reactor.close - super end with '#annotate' do diff --git a/test/async/wrapper.rb b/test/async/wrapper.rb index 8e815e2b..5ef98002 100644 --- a/test/async/wrapper.rb +++ b/test/async/wrapper.rb @@ -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