diff options
author | Jenny Shen <[email protected]> | 2023-07-01 00:20:57 -0400 |
---|---|---|
committer | git <[email protected]> | 2023-07-28 16:08:09 +0000 |
commit | e96b3138a85d42fe5ee5ef4ddd1ea12b784e8d80 (patch) | |
tree | a436bcbc44e02cc4ff406280ac100076f28116aa | |
parent | 24913e3dda3d4ebd633e94e46ca221ebfcb9f89b (diff) |
[rubygems/rubygems] Use assert_raise in webauthn poller tests
https://github.com/rubygems/rubygems/commit/0969ad330e
-rw-r--r-- | test/rubygems/test_webauthn_poller.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/rubygems/test_webauthn_poller.rb b/test/rubygems/test_webauthn_poller.rb index 776deba9cc..23c24faa11 100644 --- a/test/rubygems/test_webauthn_poller.rb +++ b/test/rubygems/test_webauthn_poller.rb @@ -72,7 +72,7 @@ class WebauthnPollerTest < Gem::TestCase msg: "OK" ) - assert_raises Timeout::Error do + assert_raise Timeout::Error do Timeout.timeout(0.1) do Gem::GemcutterUtilities::WebauthnPoller.new({}, @host).poll_for_otp(@webauthn_url, @credentials) end @@ -86,7 +86,7 @@ class WebauthnPollerTest < Gem::TestCase msg: "Unauthorized" ) - error = assert_raises Gem::WebauthnVerificationError do + error = assert_raise Gem::WebauthnVerificationError do Gem::GemcutterUtilities::WebauthnPoller.new({}, @host).poll_for_otp(@webauthn_url, @credentials) end @@ -100,7 +100,7 @@ class WebauthnPollerTest < Gem::TestCase msg: "OK" ) - error = assert_raises Gem::WebauthnVerificationError do + error = assert_raise Gem::WebauthnVerificationError do Gem::GemcutterUtilities::WebauthnPoller.new({}, @host).poll_for_otp(@webauthn_url, @credentials) end @@ -114,7 +114,7 @@ class WebauthnPollerTest < Gem::TestCase msg: "OK" ) - error = assert_raises Gem::WebauthnVerificationError do + error = assert_raise Gem::WebauthnVerificationError do Gem::GemcutterUtilities::WebauthnPoller.new({}, @host).poll_for_otp(@webauthn_url, @credentials) end |