fix: do not retry rnf bad request
This commit is contained in:
parent
dd6c558541
commit
8405c83c12
2 changed files with 13 additions and 0 deletions
|
@ -72,6 +72,15 @@ describe Champs::RNFChamp, type: :model do
|
|||
expect(subject.failure.reason).to be_a(API::Client::HTTPError)
|
||||
}
|
||||
end
|
||||
|
||||
context 'failure (http 400)' do
|
||||
let(:status) { 400 }
|
||||
let(:response_type) { 'invalid' }
|
||||
it {
|
||||
expect(subject.failure.retryable).to be_falsey
|
||||
expect(subject.failure.reason).to be_a(API::Client::HTTPError)
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
describe 'for_export' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue