@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.
package/dist/ststestrunner.mjs
CHANGED
|
@@ -133,12 +133,15 @@ var TestCaseFhirBase = class {
|
|
|
133
133
|
GetFhirSocketClient = async () => {
|
|
134
134
|
try {
|
|
135
135
|
this.#clientSocketFetchCount++;
|
|
136
|
-
if (this.fhirClient)
|
|
137
|
-
this.
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
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.fhirClient.ResetSocket();
|
|
140
|
+
await Sleep(3500);
|
|
141
|
+
this.fhirClient = null;
|
|
142
|
+
return this.GetFhirSocketClient();
|
|
143
|
+
} else return this.fhirClient;
|
|
144
|
+
}
|
|
142
145
|
const fhirOptions = this.#options.fhirOptions;
|
|
143
146
|
const options = {
|
|
144
147
|
fhirServerEndpoint: fhirOptions.stsfhirserverendpoint,
|