diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-04-12 15:59:49 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-04-12 09:26:05 +0000 |
commit | f06a48a92af602e60ab6ae155345420efa3d15d3 (patch) | |
tree | c723f295e951612fb487d8f7d4ae6a9c203b1345 /test | |
parent | 851344965ab9917af6caab39ac065e0f0d70b489 (diff) | |
download | ruby-f06a48a92af602e60ab6ae155345420efa3d15d3.tar.gz |
[rubygems/rubygems] Close the server for test
https://github.com/rubygems/rubygems/commit/bf5e82fd14
Diffstat (limited to 'test')
-rw-r--r-- | test/rubygems/test_webauthn_listener.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/rubygems/test_webauthn_listener.rb b/test/rubygems/test_webauthn_listener.rb index 5677546e42..81cfd2fc61 100644 --- a/test/rubygems/test_webauthn_listener.rb +++ b/test/rubygems/test_webauthn_listener.rb @@ -10,6 +10,12 @@ class WebauthnListenerTest < Gem::TestCase @port = @server.addr[1].to_s end + def teardown + @thread.kill.join if @thread + @server&.close + super + end + def test_wait_for_otp_code_get_follows_options wait_for_otp_code assert Gem::MockBrowser.options(URI("http://localhost:#{@port}?code=xyz")).is_a? Net::HTTPNoContent |