@nsshunt/ststestrunner 1.1.50 → 1.1.51

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.
@@ -156,12 +156,15 @@ var TestCaseFhirBase = class {
156
156
  GetFhirSocketClient = async () => {
157
157
  try {
158
158
  this.#clientSocketFetchCount++;
159
- if (this.fhirClient) if (this.#clientSocketFetchCount % this.#resetSocketClientTrigger === 0) {
160
- this.fhirClient.ResetSocket();
161
- await (0, _nsshunt_stsutils.Sleep)(3500);
162
- this.fhirClient = null;
163
- return this.GetFhirSocketClient();
164
- } else return this.fhirClient;
159
+ if (this.fhirClient) {
160
+ this.Debug(`GetFhirSocketClient(): clientSocketFetchCount: [${this.#clientSocketFetchCount}] resetSocketClientTrigger: [${this.#resetSocketClientTrigger}] mod: [${this.#clientSocketFetchCount % this.#resetSocketClientTrigger}]`);
161
+ if (this.#clientSocketFetchCount % this.#resetSocketClientTrigger === 0) {
162
+ this.fhirClient.ResetSocket();
163
+ await (0, _nsshunt_stsutils.Sleep)(3500);
164
+ this.fhirClient = null;
165
+ return this.GetFhirSocketClient();
166
+ } else return this.fhirClient;
167
+ }
165
168
  const fhirOptions = this.#options.fhirOptions;
166
169
  const options = {
167
170
  fhirServerEndpoint: fhirOptions.stsfhirserverendpoint,