Skip to content

Commit

Permalink
increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrutcher committed May 14, 2024
1 parent 6591fec commit 36e3f0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions carriers/ups.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ function UPS(options) {
if (body && !body.TrackResponse) {
if (body?.Fault?.detail?.Errors?.ErrorDetail?.PrimaryErrorCode?.Description) {
return callback(new Error(body.Fault.detail.Errors.ErrorDetail.PrimaryErrorCode.Description));
} else if (body?.response?.errors?.[0]?.message) {
return callback(new Error(body.response.errors[0].message));
} else {
return callback(new Error('Invalid or missing TrackResponse'));
}
Expand Down
4 changes: 2 additions & 2 deletions test/carriers/ups.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ function areEventsEqual(a, b) {
}

describe('UPS', function() {
this.timeout(20000);
this.timeout(25000);

beforeEach(function(done) {
// This is to ensure that the UPS API doesn't rate limit us
setTimeout(() => {
done();
}, 10000);
}, 15000);
});

const bloodhound = new Bloodhound({
Expand Down

0 comments on commit 36e3f0d

Please sign in to comment.