Skip to content

Commit 374584d

Browse files
committed
Update default timeouts, update tests
1 parent c0f6b94 commit 374584d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+44
-248
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
exports.requests = require("./lib/requests");
44
exports.errors = require("./lib/errors");
5-
exports.ApiClient = require("./lib/api-client").ApiClient;
5+
exports.ApiClient = require("./lib/api-client").ApiClient;

lib/errors/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
'use strict';
22
exports.ApiError = require("./api-error").ApiError;
33
exports.ResponseError = require("./response-error").ResponseError;
4-
exports.TimeoutError = require("./timeout-error").TimeoutError;
4+
exports.TimeoutError = require("./timeout-error").TimeoutError;

lib/requests/add-bookmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class AddBookmark extends rqs.Request {
3030
* - Description: A dictionary of additional data for the interaction.
3131
*/
3232
constructor(userId, itemId, optional) {
33-
super('POST', '/bookmarks/', 1000, false);
33+
super('POST', '/bookmarks/', 3000, false);
3434
this.userId = userId;
3535
this.itemId = itemId;
3636
optional = optional || {};

lib/requests/add-cart-addition.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class AddCartAddition extends rqs.Request {
3636
* - Description: A dictionary of additional data for the interaction.
3737
*/
3838
constructor(userId, itemId, optional) {
39-
super('POST', '/cartadditions/', 1000, false);
39+
super('POST', '/cartadditions/', 3000, false);
4040
this.userId = userId;
4141
this.itemId = itemId;
4242
optional = optional || {};

lib/requests/add-detail-view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class AddDetailView extends rqs.Request {
3333
* - Description: A dictionary of additional data for the interaction.
3434
*/
3535
constructor(userId, itemId, optional) {
36-
super('POST', '/detailviews/', 1000, false);
36+
super('POST', '/detailviews/', 3000, false);
3737
this.userId = userId;
3838
this.itemId = itemId;
3939
optional = optional || {};

lib/requests/add-item-property.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
const rqs = require("./request");
77

88
/**
9-
* Adding an item property is somehow equivalent to adding a column to the table of items. The items may be characterized by various properties of different types.
9+
* Adding an item property is somewhat equivalent to adding a column to the table of items. The items may be characterized by various properties of different types.
1010
*/
1111
class AddItemProperty extends rqs.Request {
1212

lib/requests/add-item.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class AddItem extends rqs.Request {
1616
* @param {string} itemId - ID of the item to be created.
1717
*/
1818
constructor(itemId) {
19-
super('PUT', `/items/${itemId}`, 1000, false);
19+
super('PUT', `/items/${itemId}`, 3000, false);
2020
this.itemId = itemId;
2121
}
2222

lib/requests/add-purchase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class AddPurchase extends rqs.Request {
3939
* - Description: A dictionary of additional data for the interaction.
4040
*/
4141
constructor(userId, itemId, optional) {
42-
super('POST', '/purchases/', 1000, false);
42+
super('POST', '/purchases/', 3000, false);
4343
this.userId = userId;
4444
this.itemId = itemId;
4545
optional = optional || {};

lib/requests/add-rating.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class AddRating extends rqs.Request {
3131
* - Description: A dictionary of additional data for the interaction.
3232
*/
3333
constructor(userId, itemId, rating, optional) {
34-
super('POST', '/ratings/', 1000, false);
34+
super('POST', '/ratings/', 3000, false);
3535
this.userId = userId;
3636
this.itemId = itemId;
3737
this.rating = rating;

lib/requests/add-series.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class AddSeries extends rqs.Request {
1515
* @param {string} seriesId - ID of the series to be created.
1616
*/
1717
constructor(seriesId) {
18-
super('PUT', `/series/${seriesId}`, 1000, false);
18+
super('PUT', `/series/${seriesId}`, 3000, false);
1919
this.seriesId = seriesId;
2020
}
2121

0 commit comments

Comments
 (0)