We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e07d7e2 commit 7299d82Copy full SHA for 7299d82
2 files changed
Makefile
@@ -39,7 +39,7 @@ lint:
39
@yarn lint
40
41
doc:
42
- @echo "Building the documenation..."
+ @echo "Building the documentation..."
43
44
precommit: dep lint doc build test
45
packages/sdk-util/src/index.js
@@ -30,7 +30,7 @@ class BaseClient {
30
accessKey: '',
31
accessSecret: '',
32
maxQueryDepth: 4,
33
- retries: 3,
+ retries: process.env.NODE_ENV === 'test' ? 0 : 3,
34
},
35
config
36
);
@@ -55,7 +55,7 @@ class BaseClient {
55
56
this._doRequestWithRetry = (...args) =>
57
pRetry(() => this._doRequest(...args), {
58
- retries: +this.config.retries ? +this.config.retries : 3,
+ retries: this.config.retries !== undefined ? +this.config.retries : 3,
59
factor: 2,
60
minTimeout: 100,
61
maxTimeout: 1000,
0 commit comments