Skip to content

Commit

Permalink
Ensure all sockets are closed.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Oct 12, 2022
1 parent b69c41a commit c24bd3d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/async/scheduler/io_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
s1.putc('a')

child.wait
ensure
s1.close
s2.close
end

it "can perform blocking read" do
Expand All @@ -53,6 +56,8 @@
s1.close

child.wait
ensure
s2.close
end
end
end

0 comments on commit c24bd3d

Please sign in to comment.