@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.mjs
CHANGED
|
@@ -423,13 +423,23 @@ var TestCaseFhirBase = class {
|
|
|
423
423
|
StopRunner = async () => {
|
|
424
424
|
await this.#OutputLogMessage(`StopRunner [${this.#runner.id}]`);
|
|
425
425
|
await this.#ForcePublishTelemetryData();
|
|
426
|
-
this.
|
|
426
|
+
if (this.fhirClient) {
|
|
427
|
+
this.Debug(`TestCaseFhirBase:StopRunner(): Calling: [fhirClient.ResetSocket()]`);
|
|
428
|
+
this.fhirClient.ResetSocket();
|
|
429
|
+
await Sleep(100);
|
|
430
|
+
this.fhirClient = null;
|
|
431
|
+
}
|
|
427
432
|
return true;
|
|
428
433
|
};
|
|
429
434
|
TerminateRunner = async () => {
|
|
430
435
|
await this.#OutputLogMessage(`TerminateRunner [${this.#runner.id}]`);
|
|
431
436
|
await this.#ForcePublishTelemetryData();
|
|
432
|
-
this.
|
|
437
|
+
if (this.fhirClient) {
|
|
438
|
+
this.Debug(`TestCaseFhirBase:TerminateRunner(): Calling: [fhirClient.ResetSocket()]`);
|
|
439
|
+
this.fhirClient.ResetSocket();
|
|
440
|
+
await Sleep(100);
|
|
441
|
+
this.fhirClient = null;
|
|
442
|
+
}
|
|
433
443
|
return true;
|
|
434
444
|
};
|
|
435
445
|
Completed = async () => {
|
|
@@ -437,7 +447,12 @@ var TestCaseFhirBase = class {
|
|
|
437
447
|
this.runner.instrumentData.timer = performance.now() - start;
|
|
438
448
|
await this.#OutputLogMessage(`Completed [${this.#runner.id}] [${JSON.stringify(this.#runner.instrumentData)}]`);
|
|
439
449
|
await this.#ForcePublishTelemetryData();
|
|
440
|
-
this.
|
|
450
|
+
if (this.fhirClient) {
|
|
451
|
+
this.Debug(`TestCaseFhirBase:Completed(): Calling: [fhirClient.ResetSocket()]`);
|
|
452
|
+
this.fhirClient.ResetSocket();
|
|
453
|
+
await Sleep(100);
|
|
454
|
+
this.fhirClient = null;
|
|
455
|
+
}
|
|
441
456
|
return true;
|
|
442
457
|
};
|
|
443
458
|
PauseRunner = async () => {
|
|
@@ -453,6 +468,12 @@ var TestCaseFhirBase = class {
|
|
|
453
468
|
ResetRunner = async () => {
|
|
454
469
|
await this.#OutputLogMessage(`ResetRunner [${this.#runner.id}]`);
|
|
455
470
|
await this.#ForcePublishTelemetryData();
|
|
471
|
+
if (this.fhirClient) {
|
|
472
|
+
this.Debug(`TestCaseFhirBase:ResetRunner(): Calling: [fhirClient.ResetSocket()]`);
|
|
473
|
+
this.fhirClient.ResetSocket();
|
|
474
|
+
await Sleep(100);
|
|
475
|
+
this.fhirClient = null;
|
|
476
|
+
}
|
|
456
477
|
return true;
|
|
457
478
|
};
|
|
458
479
|
UpdateRunner = async () => {
|