@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.mjs
CHANGED
|
@@ -133,17 +133,7 @@ var TestCaseFhirBase = class {
|
|
|
133
133
|
GetFhirSocketClient = async () => {
|
|
134
134
|
try {
|
|
135
135
|
this.#clientSocketFetchCount++;
|
|
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
|
-
}
|
|
136
|
+
if (this.fhirClient) return this.fhirClient;
|
|
147
137
|
const fhirOptions = this.#options.fhirOptions;
|
|
148
138
|
const options = {
|
|
149
139
|
fhirServerEndpoint: fhirOptions.stsfhirserverendpoint,
|