@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.mjs
CHANGED
|
@@ -133,12 +133,17 @@ 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.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,
|