@nsshunt/ststestrunner 1.1.133 → 1.1.135

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.
@@ -984,6 +984,8 @@ var TestCaseFhirBase = class {
984
984
  #publishTelemetryTimeout = null;
985
985
  #publishTelemetryTimeoutVal = 1e3;
986
986
  randomSequence = [];
987
+ _currentWorkerManagerIndex = 0;
988
+ _indexTable = {};
987
989
  _RetryMap = [
988
990
  100,
989
991
  250,
@@ -1189,9 +1191,120 @@ var TestCaseFhirBase = class {
1189
1191
  return true;
1190
1192
  };
1191
1193
  _GetDetail = () => {
1192
- const { runPrefix, testType, description } = this.runner.options;
1194
+ const options = this.runner.options;
1195
+ const { runPrefix, testType, description } = options;
1193
1196
  const { workerManagerId, iteration } = this.runner;
1194
- return `runPrefix: [${runPrefix}], testType: [${testType}], description: [${description}], workerManagerId: [${workerManagerId}], Iteration: [${iteration}]`;
1197
+ const rgbTable = [
1198
+ [
1199
+ 0,
1200
+ 100,
1201
+ 255
1202
+ ],
1203
+ [
1204
+ 75,
1205
+ 150,
1206
+ 255
1207
+ ],
1208
+ [
1209
+ 150,
1210
+ 180,
1211
+ 255
1212
+ ],
1213
+ [
1214
+ 190,
1215
+ 200,
1216
+ 255
1217
+ ],
1218
+ [
1219
+ 210,
1220
+ 230,
1221
+ 255
1222
+ ]
1223
+ ];
1224
+ const workerManagerRGBTable = [
1225
+ [
1226
+ 200,
1227
+ 0,
1228
+ 255
1229
+ ],
1230
+ [
1231
+ 210,
1232
+ 60,
1233
+ 255
1234
+ ],
1235
+ [
1236
+ 220,
1237
+ 114,
1238
+ 255
1239
+ ],
1240
+ [
1241
+ 235,
1242
+ 170,
1243
+ 255
1244
+ ],
1245
+ [
1246
+ 240,
1247
+ 210,
1248
+ 255
1249
+ ],
1250
+ [
1251
+ 0,
1252
+ 255,
1253
+ 130
1254
+ ],
1255
+ [
1256
+ 75,
1257
+ 255,
1258
+ 160
1259
+ ],
1260
+ [
1261
+ 130,
1262
+ 255,
1263
+ 190
1264
+ ],
1265
+ [
1266
+ 190,
1267
+ 255,
1268
+ 220
1269
+ ],
1270
+ [
1271
+ 215,
1272
+ 255,
1273
+ 230
1274
+ ],
1275
+ [
1276
+ 255,
1277
+ 150,
1278
+ 0
1279
+ ],
1280
+ [
1281
+ 255,
1282
+ 170,
1283
+ 65
1284
+ ],
1285
+ [
1286
+ 255,
1287
+ 200,
1288
+ 130
1289
+ ],
1290
+ [
1291
+ 255,
1292
+ 220,
1293
+ 180
1294
+ ],
1295
+ [
1296
+ 255,
1297
+ 235,
1298
+ 210
1299
+ ]
1300
+ ];
1301
+ if (!this._indexTable[workerManagerId]) this._indexTable[workerManagerId] = this._currentWorkerManagerIndex++;
1302
+ const workerManagerIndex = this._indexTable[workerManagerId];
1303
+ const rgbTableRow = rgbTable[options.workerIndex % rgbTable.length];
1304
+ const workerManagerRGBTableRow = workerManagerRGBTable[workerManagerIndex % workerManagerRGBTable.length];
1305
+ const wkCol = chalk.default.rgb(rgbTableRow[0], rgbTableRow[1], rgbTableRow[2]);
1306
+ const wkColWM = chalk.default.rgb(workerManagerRGBTableRow[0], workerManagerRGBTableRow[1], workerManagerRGBTableRow[2]);
1307
+ return wkCol(`runPrefix: [${chalk.default.bold(runPrefix)}], testType: [${chalk.default.bold(testType)}], description: [${chalk.default.bold(description)}], workerManagerId: [${wkColWM(chalk.default.bold(workerManagerId))}], Iteration: [${chalk.default.bold(iteration.toString())}]`);
1195
1308
  };
1196
1309
  _CheckOutputLongDurationError = (snapshotStart, message) => {
1197
1310
  const snapShotEnd = performance.now();