@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@google-cloud/nodejs-common",
3
- "version": "0.9.4-beta2",
3
+ "version": "0.9.4-beta3",
4
4
  "description": "A NodeJs common library for solutions based on Cloud Functions",
5
5
  "author": "Google Inc.",
6
6
  "license": "Apache-2.0",
@@ -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: ${data.length} records with config: ` +
294
- `${recordSize} records(s)/request and ${qps} QPS in ${timeout} sec.`;
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);