@nsshunt/ststestrunner 1.1.67 → 1.1.69
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
|
@@ -168,7 +168,11 @@ var TestCaseFhirBase = class {
|
|
|
168
168
|
console.log(`-----------------------------------------------------------------------------------------------------------------`);
|
|
169
169
|
}
|
|
170
170
|
let fhirClient = this.runnerExecutionWorker.GetFhirClient();
|
|
171
|
-
if (fhirClient)
|
|
171
|
+
if (fhirClient) {
|
|
172
|
+
console.log(chalk.default.green(`[${this.runnerExecutionWorker.id}] Getting existing fhir client`));
|
|
173
|
+
return fhirClient;
|
|
174
|
+
}
|
|
175
|
+
console.log(chalk.default.red(`[${this.runnerExecutionWorker.id}] fhir client does not exist - setting up new client`));
|
|
172
176
|
const fhirOptions = this.#options.fhirOptions;
|
|
173
177
|
const options = {
|
|
174
178
|
fhirServerEndpoint: fhirOptions.stsfhirserverendpoint,
|
|
@@ -188,6 +192,7 @@ var TestCaseFhirBase = class {
|
|
|
188
192
|
if (this.runner.options.fhirOptions.stsfhirsocketclientmode === "socket-client-all-in-one") fhirClient = new _nsshunt_stsfhirclient.FhirSocketClientAllInOne("FhirSocketClient", options);
|
|
189
193
|
else fhirClient = new _nsshunt_stsfhirclient.FhirSocketClientIndividual("FhirSocketClient", options);
|
|
190
194
|
await fhirClient.WaitForSocketConnected();
|
|
195
|
+
console.log(chalk.default.red(`[${this.runnerExecutionWorker.id}] setting fhir client into object`));
|
|
191
196
|
this.runnerExecutionWorker.SetFhirClient(fhirClient);
|
|
192
197
|
return fhirClient;
|
|
193
198
|
} catch (error) {
|