Skip to content

Commit

Permalink
Wait testing/helper threads to terminate
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu authored and hsbt committed Dec 21, 2020
1 parent b1adc9e commit 3d144ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/net/smtp/test_sslcontext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def ssl_socket(socket, context)
end

def teardown
@server_thread&.exit
@server_thread&.exit&.join
@server_socket&.close
@client_socket&.close
end
Expand Down
2 changes: 1 addition & 1 deletion test/net/smtp/test_starttls.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def tlsconnect(*)
end

def teardown
@server_thread&.exit
@server_thread&.exit&.join
@server_socket&.close
@client_socket&.close
end
Expand Down

0 comments on commit 3d144ca

Please sign in to comment.