@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.
@@ -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,
@@ -1184,9 +1186,120 @@ var TestCaseFhirBase = class {
1184
1186
  return true;
1185
1187
  };
1186
1188
  _GetDetail = () => {
1187
- const { runPrefix, testType, description } = this.runner.options;
1189
+ const options = this.runner.options;
1190
+ const { runPrefix, testType, description } = options;
1188
1191
  const { workerManagerId, iteration } = this.runner;
1189
- return `runPrefix: [${runPrefix}], testType: [${testType}], description: [${description}], workerManagerId: [${workerManagerId}], Iteration: [${iteration}]`;
1192
+ const rgbTable = [
1193
+ [
1194
+ 0,
1195
+ 100,
1196
+ 255
1197
+ ],
1198
+ [
1199
+ 75,
1200
+ 150,
1201
+ 255
1202
+ ],
1203
+ [
1204
+ 150,
1205
+ 180,
1206
+ 255
1207
+ ],
1208
+ [
1209
+ 190,
1210
+ 200,
1211
+ 255
1212
+ ],
1213
+ [
1214
+ 210,
1215
+ 230,
1216
+ 255
1217
+ ]
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];
1298
+ const rgbTableRow = rgbTable[options.workerIndex % rgbTable.length];
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
+ return wkCol(`runPrefix: [${chalk.bold(runPrefix)}], testType: [${chalk.bold(testType)}], description: [${chalk.bold(description)}], workerManagerId: [${wkColWM(chalk.bold(workerManagerId))}], Iteration: [${chalk.bold(iteration.toString())}]`);
1190
1303
  };
1191
1304
  _CheckOutputLongDurationError = (snapshotStart, message) => {
1192
1305
  const snapShotEnd = performance.now();