@nsshunt/ststestrunner 1.1.54 → 1.1.55
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,23 @@ 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
|
+
this.Debug(`TestCaseFhirBase:StopRunner(): Calling: [fhirClient.ResetSocket()]`);
|
|
451
|
+
this.fhirClient.ResetSocket();
|
|
452
|
+
await (0, _nsshunt_stsutils.Sleep)(100);
|
|
453
|
+
this.fhirClient = null;
|
|
454
|
+
}
|
|
450
455
|
return true;
|
|
451
456
|
};
|
|
452
457
|
TerminateRunner = async () => {
|
|
453
458
|
await this.#OutputLogMessage(`TerminateRunner [${this.#runner.id}]`);
|
|
454
459
|
await this.#ForcePublishTelemetryData();
|
|
455
|
-
this.
|
|
460
|
+
if (this.fhirClient) {
|
|
461
|
+
this.Debug(`TestCaseFhirBase:TerminateRunner(): Calling: [fhirClient.ResetSocket()]`);
|
|
462
|
+
this.fhirClient.ResetSocket();
|
|
463
|
+
await (0, _nsshunt_stsutils.Sleep)(100);
|
|
464
|
+
this.fhirClient = null;
|
|
465
|
+
}
|
|
456
466
|
return true;
|
|
457
467
|
};
|
|
458
468
|
Completed = async () => {
|
|
@@ -460,7 +470,12 @@ var TestCaseFhirBase = class {
|
|
|
460
470
|
this.runner.instrumentData.timer = performance.now() - start;
|
|
461
471
|
await this.#OutputLogMessage(`Completed [${this.#runner.id}] [${JSON.stringify(this.#runner.instrumentData)}]`);
|
|
462
472
|
await this.#ForcePublishTelemetryData();
|
|
463
|
-
this.
|
|
473
|
+
if (this.fhirClient) {
|
|
474
|
+
this.Debug(`TestCaseFhirBase:Completed(): Calling: [fhirClient.ResetSocket()]`);
|
|
475
|
+
this.fhirClient.ResetSocket();
|
|
476
|
+
await (0, _nsshunt_stsutils.Sleep)(100);
|
|
477
|
+
this.fhirClient = null;
|
|
478
|
+
}
|
|
464
479
|
return true;
|
|
465
480
|
};
|
|
466
481
|
PauseRunner = async () => {
|
|
@@ -476,6 +491,12 @@ var TestCaseFhirBase = class {
|
|
|
476
491
|
ResetRunner = async () => {
|
|
477
492
|
await this.#OutputLogMessage(`ResetRunner [${this.#runner.id}]`);
|
|
478
493
|
await this.#ForcePublishTelemetryData();
|
|
494
|
+
if (this.fhirClient) {
|
|
495
|
+
this.Debug(`TestCaseFhirBase:ResetRunner(): Calling: [fhirClient.ResetSocket()]`);
|
|
496
|
+
this.fhirClient.ResetSocket();
|
|
497
|
+
await (0, _nsshunt_stsutils.Sleep)(100);
|
|
498
|
+
this.fhirClient = null;
|
|
499
|
+
}
|
|
479
500
|
return true;
|
|
480
501
|
};
|
|
481
502
|
UpdateRunner = async () => {
|