@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.
@@ -133,12 +133,17 @@ var TestCaseFhirBase = class {
133
133
  GetFhirSocketClient = async () => {
134
134
  try {
135
135
  this.#clientSocketFetchCount++;
136
- if (this.fhirClient) if (this.#clientSocketFetchCount % this.#resetSocketClientTrigger === 0) {
137
- this.fhirClient.ResetSocket();
138
- await Sleep(3500);
139
- this.fhirClient = null;
140
- return this.GetFhirSocketClient();
141
- } else return this.fhirClient;
136
+ if (this.fhirClient) {
137
+ this.Debug(`GetFhirSocketClient(): clientSocketFetchCount: [${this.#clientSocketFetchCount}] resetSocketClientTrigger: [${this.#resetSocketClientTrigger}] mod: [${this.#clientSocketFetchCount % this.#resetSocketClientTrigger}]`);
138
+ if (this.#clientSocketFetchCount % this.#resetSocketClientTrigger === 0) {
139
+ this.Debug(`GetFhirSocketClient(): ... resetting ...`);
140
+ this.fhirClient.ResetSocket();
141
+ await Sleep(3500);
142
+ this.fhirClient = null;
143
+ this.Debug(`GetFhirSocketClient(): ... resetting done ...`);
144
+ return this.GetFhirSocketClient();
145
+ } else return this.fhirClient;
146
+ }
142
147
  const fhirOptions = this.#options.fhirOptions;
143
148
  const options = {
144
149
  fhirServerEndpoint: fhirOptions.stsfhirserverendpoint,