aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/net/http/test_http.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/net/http/test_http.rb b/test/net/http/test_http.rb
index fbfe7442b0..e6897d2147 100644
--- a/test/net/http/test_http.rb
+++ b/test/net/http/test_http.rb
@@ -549,8 +549,8 @@ module TestNetHTTP_version_1_1_methods
assert th.join(10)
}
ensure
- th.kill
- th.join
+ th&.kill
+ th&.join
end
def test_timeout_during_HTTP_session