@nsshunt/ststestrunner 1.1.50 → 1.1.52

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,17 @@ 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.Debug(`GetFhirSocketClient(): ... resetting ...`);
163
+ this.fhirClient.ResetSocket();
164
+ await (0, _nsshunt_stsutils.Sleep)(3500);
165
+ this.fhirClient = null;
166
+ this.Debug(`GetFhirSocketClient(): ... resetting done ...`);
167
+ return this.GetFhirSocketClient();
168
+ } else return this.fhirClient;
169
+ }
165
170
  const fhirOptions = this.#options.fhirOptions;
166
171
  const options = {
167
172
  fhirServerEndpoint: fhirOptions.stsfhirserverendpoint,