@google-cloud/nodejs-common 0.9.4-beta2 → 0.9.4-beta3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/utils.js +3 -3
package/package.json
CHANGED
package/src/components/utils.js
CHANGED
|
@@ -290,12 +290,12 @@ const apiSpeedControl = (recordSize = 1, numberOfThreads = 1, qps = 1,
|
|
|
290
290
|
data :
|
|
291
291
|
data.split('\n').filter((line) => line.trim() !== '');
|
|
292
292
|
if (maxRecords < data.length) {
|
|
293
|
-
const error = `Predicted timeout: ${
|
|
294
|
-
`${recordSize} records
|
|
293
|
+
const error = `Predicted timeout: ${records.length} records with config: `
|
|
294
|
+
+ `${recordSize} records/request and ${qps} QPS in ${timeout} sec.`;
|
|
295
295
|
logger.error(error);
|
|
296
296
|
return {
|
|
297
297
|
result: false,
|
|
298
|
-
error,
|
|
298
|
+
errors: [error],
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
301
|
const roundArray = splitArray(records, roundSize);
|