@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.
package/dist/ststestrunner.cjs
CHANGED
|
@@ -156,12 +156,17 @@ var TestCaseFhirBase = class {
|
|
|
156
156
|
GetFhirSocketClient = async () => {
|
|
157
157
|
try {
|
|
158
158
|
this.#clientSocketFetchCount++;
|
|
159
|
-
if (this.fhirClient)
|
|
160
|
-
this.
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
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,
|