mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 03:25:14 +00:00
Update stoplight to version 5.4.0 (#36581)
This commit is contained in:
parent
1ba579b0a1
commit
2640cf5317
2 changed files with 2 additions and 2 deletions
|
|
@ -834,7 +834,7 @@ GEM
|
||||||
stackprof (0.2.27)
|
stackprof (0.2.27)
|
||||||
starry (0.2.0)
|
starry (0.2.0)
|
||||||
base64
|
base64
|
||||||
stoplight (5.3.8)
|
stoplight (5.4.0)
|
||||||
zeitwerk
|
zeitwerk
|
||||||
stringio (3.1.7)
|
stringio (3.1.7)
|
||||||
strong_migrations (2.5.1)
|
strong_migrations (2.5.1)
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ RSpec.describe Api::ErrorHandling do
|
||||||
Mastodon::ValidationError => 422,
|
Mastodon::ValidationError => 422,
|
||||||
OpenSSL::SSL::SSLError => 503,
|
OpenSSL::SSL::SSLError => 503,
|
||||||
Seahorse::Client::NetworkingError => 503,
|
Seahorse::Client::NetworkingError => 503,
|
||||||
Stoplight::Error::RedLight => 503,
|
Stoplight::Error::RedLight.new(:name, cool_off_time: 1, retry_after: 1) => 503,
|
||||||
}.each do |error, code|
|
}.each do |error, code|
|
||||||
it "Handles error class of #{error}" do
|
it "Handles error class of #{error}" do
|
||||||
allow(FakeService)
|
allow(FakeService)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue