@nsshunt/ststestrunner 1.1.58 → 1.1.60
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 +14 -1
- package/dist/ststestrunner.cjs.map +1 -1
- package/dist/ststestrunner.mjs +14 -1
- package/dist/ststestrunner.mjs.map +1 -1
- package/package.json +1 -1
- package/types/libmodule/testCaseFhirBase.d.ts.map +1 -1
- package/types/libmodule/workerFhirTestCases.d.ts +2 -0
- package/types/libmodule/workerFhirTestCases.d.ts.map +1 -1
package/dist/ststestrunner.cjs
CHANGED
|
@@ -155,7 +155,10 @@ var TestCaseFhirBase = class {
|
|
|
155
155
|
GetFhirSocketClient = async () => {
|
|
156
156
|
try {
|
|
157
157
|
this.#clientSocketFetchCount++;
|
|
158
|
-
if (this.fhirClient)
|
|
158
|
+
if (this.runnerExecutionWorker.fhirClient) {
|
|
159
|
+
this.fhirClient = this.runnerExecutionWorker.fhirClient;
|
|
160
|
+
return this.fhirClient;
|
|
161
|
+
}
|
|
159
162
|
const fhirOptions = this.#options.fhirOptions;
|
|
160
163
|
const options = {
|
|
161
164
|
fhirServerEndpoint: fhirOptions.stsfhirserverendpoint,
|
|
@@ -175,6 +178,7 @@ var TestCaseFhirBase = class {
|
|
|
175
178
|
if (this.runner.options.fhirOptions.stsfhirsocketclientmode === "socket-client-all-in-one") this.fhirClient = new _nsshunt_stsfhirclient.FhirSocketClientAllInOne("FhirSocketClient", options);
|
|
176
179
|
else this.fhirClient = new _nsshunt_stsfhirclient.FhirSocketClientIndividual("FhirSocketClient", options);
|
|
177
180
|
await this.fhirClient.WaitForSocketConnected();
|
|
181
|
+
this.runnerExecutionWorker.fhirClient = this.fhirClient;
|
|
178
182
|
return this.fhirClient;
|
|
179
183
|
} catch (error) {
|
|
180
184
|
this.LogErrorMessage(error);
|
|
@@ -449,7 +453,9 @@ var TestCaseFhirBase = class {
|
|
|
449
453
|
await this.#ForcePublishTelemetryData();
|
|
450
454
|
if (this.fhirClient) {
|
|
451
455
|
this.Debug(chalk.default.magenta(`TestCaseFhirBase:StopRunner(): Calling: [fhirClient.ResetSocket()]`));
|
|
456
|
+
this.fhirClient.ResetSocket();
|
|
452
457
|
await (0, _nsshunt_stsutils.Sleep)(100);
|
|
458
|
+
this.fhirClient = null;
|
|
453
459
|
}
|
|
454
460
|
return true;
|
|
455
461
|
};
|
|
@@ -458,7 +464,9 @@ var TestCaseFhirBase = class {
|
|
|
458
464
|
await this.#ForcePublishTelemetryData();
|
|
459
465
|
if (this.fhirClient) {
|
|
460
466
|
this.Debug(chalk.default.magenta(`TestCaseFhirBase:TerminateRunner(): Calling: [fhirClient.ResetSocket()]`));
|
|
467
|
+
this.fhirClient.ResetSocket();
|
|
461
468
|
await (0, _nsshunt_stsutils.Sleep)(100);
|
|
469
|
+
this.fhirClient = null;
|
|
462
470
|
}
|
|
463
471
|
return true;
|
|
464
472
|
};
|
|
@@ -469,7 +477,9 @@ var TestCaseFhirBase = class {
|
|
|
469
477
|
await this.#ForcePublishTelemetryData();
|
|
470
478
|
if (this.fhirClient) {
|
|
471
479
|
this.Debug(chalk.default.magenta(`TestCaseFhirBase:Completed(): Calling: [fhirClient.ResetSocket()]`));
|
|
480
|
+
this.fhirClient.ResetSocket();
|
|
472
481
|
await (0, _nsshunt_stsutils.Sleep)(100);
|
|
482
|
+
this.fhirClient = null;
|
|
473
483
|
}
|
|
474
484
|
return true;
|
|
475
485
|
};
|
|
@@ -488,7 +498,9 @@ var TestCaseFhirBase = class {
|
|
|
488
498
|
await this.#ForcePublishTelemetryData();
|
|
489
499
|
if (this.fhirClient) {
|
|
490
500
|
this.Debug(chalk.default.magenta(`TestCaseFhirBase:ResetRunner(): Calling: [fhirClient.ResetSocket()]`));
|
|
501
|
+
this.fhirClient.ResetSocket();
|
|
491
502
|
await (0, _nsshunt_stsutils.Sleep)(100);
|
|
503
|
+
this.fhirClient = null;
|
|
492
504
|
}
|
|
493
505
|
return true;
|
|
494
506
|
};
|
|
@@ -35824,6 +35836,7 @@ var WorkerFhirTestCases = class extends _nsshunt_stsrunnerframework.AbstractRunn
|
|
|
35824
35836
|
this._options = options;
|
|
35825
35837
|
this._resourceDataGenerator = new ResourceDataGenerator();
|
|
35826
35838
|
}
|
|
35839
|
+
fhirClient = void 0;
|
|
35827
35840
|
get resourceDataGenerator() {
|
|
35828
35841
|
return this._resourceDataGenerator;
|
|
35829
35842
|
}
|