diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-13 13:39:57 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-13 13:39:57 +0900 |
commit | c7530f0d568e9772bef22a93907f92d8cd872995 (patch) | |
tree | f0998eba2626af383c1e3b6bcfdd76de5cb200fa /test/net | |
parent | 416e402cf3d756dcf9c5b10dc7042adf686efacf (diff) | |
download | ruby-c7530f0d568e9772bef22a93907f92d8cd872995.tar.gz |
Wait testing/helper threads to terminate
Diffstat (limited to 'test/net')
-rw-r--r-- | test/net/smtp/test_sslcontext.rb | 2 | ||||
-rw-r--r-- | test/net/smtp/test_starttls.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/net/smtp/test_sslcontext.rb b/test/net/smtp/test_sslcontext.rb index dd741cf396..4f1dcfe669 100644 --- a/test/net/smtp/test_sslcontext.rb +++ b/test/net/smtp/test_sslcontext.rb @@ -33,7 +33,7 @@ module Net end def teardown - @server_thread&.exit + @server_thread&.exit&.join @server_socket&.close @client_socket&.close end diff --git a/test/net/smtp/test_starttls.rb b/test/net/smtp/test_starttls.rb index a0855b915e..4a29fa6d70 100644 --- a/test/net/smtp/test_starttls.rb +++ b/test/net/smtp/test_starttls.rb @@ -19,7 +19,7 @@ module Net end def teardown - @server_thread&.exit + @server_thread&.exit&.join @server_socket&.close @client_socket&.close end |