Skip to content

Commit

Permalink
Close shared endpoint after use.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Mar 27, 2024
1 parent f36bb2f commit 1fa7784
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/async/dns/ipv6_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def process(name, resource_class, transaction)
expect(response.answer).to_not be_empty

task.stop
ensure
server_endpoint.close
end
end

Expand All @@ -74,5 +76,7 @@ def process(name, resource_class, transaction)
expect(response.answer).to_not be_empty

task.stop
ensure
server_endpoint.close
end
end

0 comments on commit 1fa7784

Please sign in to comment.