@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.
@@ -145,7 +145,11 @@ var TestCaseFhirBase = class {
145
145
  console.log(`-----------------------------------------------------------------------------------------------------------------`);
146
146
  }
147
147
  let fhirClient = this.runnerExecutionWorker.GetFhirClient();
148
- if (fhirClient) return fhirClient;
148
+ if (fhirClient) {
149
+ console.log(chalk.green(`[${this.runnerExecutionWorker.id}] Getting existing fhir client`));
150
+ return fhirClient;
151
+ }
152
+ console.log(chalk.red(`[${this.runnerExecutionWorker.id}] fhir client does not exist - setting up new client`));
149
153
  const fhirOptions = this.#options.fhirOptions;
150
154
  const options = {
151
155
  fhirServerEndpoint: fhirOptions.stsfhirserverendpoint,
@@ -165,6 +169,7 @@ var TestCaseFhirBase = class {
165
169
  if (this.runner.options.fhirOptions.stsfhirsocketclientmode === "socket-client-all-in-one") fhirClient = new FhirSocketClientAllInOne("FhirSocketClient", options);
166
170
  else fhirClient = new FhirSocketClientIndividual("FhirSocketClient", options);
167
171
  await fhirClient.WaitForSocketConnected();
172
+ console.log(chalk.red(`[${this.runnerExecutionWorker.id}] setting fhir client into object`));
168
173
  this.runnerExecutionWorker.SetFhirClient(fhirClient);
169
174
  return fhirClient;
170
175
  } catch (error) {