From 1fa778443237ddbc1db8bcd6d44e7d673459156f Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Wed, 27 Mar 2024 23:25:31 +1300 Subject: [PATCH] Close shared endpoint after use. --- spec/async/dns/ipv6_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/async/dns/ipv6_spec.rb b/spec/async/dns/ipv6_spec.rb index 4115819..39930cf 100644 --- a/spec/async/dns/ipv6_spec.rb +++ b/spec/async/dns/ipv6_spec.rb @@ -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 @@ -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