@nsshunt/ststestrunner 1.1.54 → 1.1.56
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.cjs
CHANGED
|
@@ -446,13 +446,27 @@ var TestCaseFhirBase = class {
|
|
|
446
446
|
StopRunner = async () => {
|
|
447
447
|
await this.#OutputLogMessage(`StopRunner [${this.#runner.id}]`);
|
|
448
448
|
await this.#ForcePublishTelemetryData();
|
|
449
|
-
this.
|
|
449
|
+
if (this.fhirClient) {
|
|
450
|
+
console.log(chalk.default.red(`************************************************************************************************`));
|
|
451
|
+
this.Debug(chalk.default.magenta(`TestCaseFhirBase:StopRunner(): Calling: [fhirClient.ResetSocket()]`));
|
|
452
|
+
console.log(chalk.default.red(`************************************************************************************************`));
|
|
453
|
+
this.fhirClient.ResetSocket();
|
|
454
|
+
await (0, _nsshunt_stsutils.Sleep)(100);
|
|
455
|
+
this.fhirClient = null;
|
|
456
|
+
}
|
|
450
457
|
return true;
|
|
451
458
|
};
|
|
452
459
|
TerminateRunner = async () => {
|
|
453
460
|
await this.#OutputLogMessage(`TerminateRunner [${this.#runner.id}]`);
|
|
454
461
|
await this.#ForcePublishTelemetryData();
|
|
455
|
-
this.
|
|
462
|
+
if (this.fhirClient) {
|
|
463
|
+
console.log(chalk.default.red(`************************************************************************************************`));
|
|
464
|
+
this.Debug(chalk.default.magenta(`TestCaseFhirBase:TerminateRunner(): Calling: [fhirClient.ResetSocket()]`));
|
|
465
|
+
console.log(chalk.default.red(`************************************************************************************************`));
|
|
466
|
+
this.fhirClient.ResetSocket();
|
|
467
|
+
await (0, _nsshunt_stsutils.Sleep)(100);
|
|
468
|
+
this.fhirClient = null;
|
|
469
|
+
}
|
|
456
470
|
return true;
|
|
457
471
|
};
|
|
458
472
|
Completed = async () => {
|
|
@@ -460,7 +474,14 @@ var TestCaseFhirBase = class {
|
|
|
460
474
|
this.runner.instrumentData.timer = performance.now() - start;
|
|
461
475
|
await this.#OutputLogMessage(`Completed [${this.#runner.id}] [${JSON.stringify(this.#runner.instrumentData)}]`);
|
|
462
476
|
await this.#ForcePublishTelemetryData();
|
|
463
|
-
this.
|
|
477
|
+
if (this.fhirClient) {
|
|
478
|
+
console.log(chalk.default.red(`************************************************************************************************`));
|
|
479
|
+
this.Debug(chalk.default.magenta(`TestCaseFhirBase:Completed(): Calling: [fhirClient.ResetSocket()]`));
|
|
480
|
+
console.log(chalk.default.red(`************************************************************************************************`));
|
|
481
|
+
this.fhirClient.ResetSocket();
|
|
482
|
+
await (0, _nsshunt_stsutils.Sleep)(100);
|
|
483
|
+
this.fhirClient = null;
|
|
484
|
+
}
|
|
464
485
|
return true;
|
|
465
486
|
};
|
|
466
487
|
PauseRunner = async () => {
|
|
@@ -476,6 +497,14 @@ var TestCaseFhirBase = class {
|
|
|
476
497
|
ResetRunner = async () => {
|
|
477
498
|
await this.#OutputLogMessage(`ResetRunner [${this.#runner.id}]`);
|
|
478
499
|
await this.#ForcePublishTelemetryData();
|
|
500
|
+
if (this.fhirClient) {
|
|
501
|
+
console.log(chalk.default.red(`************************************************************************************************`));
|
|
502
|
+
this.Debug(chalk.default.magenta(`TestCaseFhirBase:ResetRunner(): Calling: [fhirClient.ResetSocket()]`));
|
|
503
|
+
console.log(chalk.default.red(`************************************************************************************************`));
|
|
504
|
+
this.fhirClient.ResetSocket();
|
|
505
|
+
await (0, _nsshunt_stsutils.Sleep)(100);
|
|
506
|
+
this.fhirClient = null;
|
|
507
|
+
}
|
|
479
508
|
return true;
|
|
480
509
|
};
|
|
481
510
|
UpdateRunner = async () => {
|