@nsshunt/ststestrunner 1.1.134 → 1.1.136
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/dist/ststestrunner.mjs
CHANGED
|
@@ -979,6 +979,8 @@ var TestCaseFhirBase = class {
|
|
|
979
979
|
#publishTelemetryTimeout = null;
|
|
980
980
|
#publishTelemetryTimeoutVal = 1e3;
|
|
981
981
|
randomSequence = [];
|
|
982
|
+
_currentWorkerManagerIndex = 0;
|
|
983
|
+
_indexTable = {};
|
|
982
984
|
_RetryMap = [
|
|
983
985
|
100,
|
|
984
986
|
250,
|
|
@@ -1214,8 +1216,91 @@ var TestCaseFhirBase = class {
|
|
|
1214
1216
|
255
|
|
1215
1217
|
]
|
|
1216
1218
|
];
|
|
1219
|
+
const workerManagerRGBTable = [
|
|
1220
|
+
[
|
|
1221
|
+
200,
|
|
1222
|
+
0,
|
|
1223
|
+
255
|
|
1224
|
+
],
|
|
1225
|
+
[
|
|
1226
|
+
210,
|
|
1227
|
+
60,
|
|
1228
|
+
255
|
|
1229
|
+
],
|
|
1230
|
+
[
|
|
1231
|
+
220,
|
|
1232
|
+
114,
|
|
1233
|
+
255
|
|
1234
|
+
],
|
|
1235
|
+
[
|
|
1236
|
+
235,
|
|
1237
|
+
170,
|
|
1238
|
+
255
|
|
1239
|
+
],
|
|
1240
|
+
[
|
|
1241
|
+
240,
|
|
1242
|
+
210,
|
|
1243
|
+
255
|
|
1244
|
+
],
|
|
1245
|
+
[
|
|
1246
|
+
0,
|
|
1247
|
+
255,
|
|
1248
|
+
130
|
|
1249
|
+
],
|
|
1250
|
+
[
|
|
1251
|
+
75,
|
|
1252
|
+
255,
|
|
1253
|
+
160
|
|
1254
|
+
],
|
|
1255
|
+
[
|
|
1256
|
+
130,
|
|
1257
|
+
255,
|
|
1258
|
+
190
|
|
1259
|
+
],
|
|
1260
|
+
[
|
|
1261
|
+
190,
|
|
1262
|
+
255,
|
|
1263
|
+
220
|
|
1264
|
+
],
|
|
1265
|
+
[
|
|
1266
|
+
215,
|
|
1267
|
+
255,
|
|
1268
|
+
230
|
|
1269
|
+
],
|
|
1270
|
+
[
|
|
1271
|
+
255,
|
|
1272
|
+
150,
|
|
1273
|
+
0
|
|
1274
|
+
],
|
|
1275
|
+
[
|
|
1276
|
+
255,
|
|
1277
|
+
170,
|
|
1278
|
+
65
|
|
1279
|
+
],
|
|
1280
|
+
[
|
|
1281
|
+
255,
|
|
1282
|
+
200,
|
|
1283
|
+
130
|
|
1284
|
+
],
|
|
1285
|
+
[
|
|
1286
|
+
255,
|
|
1287
|
+
220,
|
|
1288
|
+
180
|
|
1289
|
+
],
|
|
1290
|
+
[
|
|
1291
|
+
255,
|
|
1292
|
+
235,
|
|
1293
|
+
210
|
|
1294
|
+
]
|
|
1295
|
+
];
|
|
1296
|
+
if (!this._indexTable[workerManagerId]) this._indexTable[workerManagerId] = this._currentWorkerManagerIndex++;
|
|
1297
|
+
const workerManagerIndex = this._indexTable[workerManagerId];
|
|
1217
1298
|
const rgbTableRow = rgbTable[options.workerIndex % rgbTable.length];
|
|
1218
|
-
|
|
1299
|
+
const workerManagerRGBTableRow = workerManagerRGBTable[workerManagerIndex % workerManagerRGBTable.length];
|
|
1300
|
+
const wkCol = chalk.rgb(rgbTableRow[0], rgbTableRow[1], rgbTableRow[2]);
|
|
1301
|
+
const wkColWM = chalk.rgb(workerManagerRGBTableRow[0], workerManagerRGBTableRow[1], workerManagerRGBTableRow[2]);
|
|
1302
|
+
console.log(`${workerManagerId} = ${workerManagerIndex} ${this._indexTable}`);
|
|
1303
|
+
return wkCol(`runPrefix: [${chalk.bold(runPrefix)}], testType: [${chalk.bold(testType)}], description: [${chalk.bold(description)}], workerManagerId: [${wkColWM(chalk.bold(workerManagerId))}], Iteration: [${chalk.bold(iteration.toString())}]`);
|
|
1219
1304
|
};
|
|
1220
1305
|
_CheckOutputLongDurationError = (snapshotStart, message) => {
|
|
1221
1306
|
const snapShotEnd = performance.now();
|