@nsshunt/ststestrunner 1.1.52 → 1.1.53
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
|
@@ -156,17 +156,7 @@ var TestCaseFhirBase = class {
|
|
|
156
156
|
GetFhirSocketClient = async () => {
|
|
157
157
|
try {
|
|
158
158
|
this.#clientSocketFetchCount++;
|
|
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
|
-
}
|
|
159
|
+
if (this.fhirClient) return this.fhirClient;
|
|
170
160
|
const fhirOptions = this.#options.fhirOptions;
|
|
171
161
|
const options = {
|
|
172
162
|
fhirServerEndpoint: fhirOptions.stsfhirserverendpoint,
|