@nsshunt/ststestrunner 1.1.48 → 1.1.50
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
|
@@ -29,7 +29,7 @@ var TestCaseFhirBase = class {
|
|
|
29
29
|
#publishTelemetryTimeout = null;
|
|
30
30
|
#publishTelemetryTimeoutVal = 1e3;
|
|
31
31
|
#originRegex = /^(api:\/\/\w+)/;
|
|
32
|
-
#resetSocketClientTrigger =
|
|
32
|
+
#resetSocketClientTrigger = 50;
|
|
33
33
|
#clientSocketFetchCount = 0;
|
|
34
34
|
#authAgentManager;
|
|
35
35
|
accessTokenTime = performance.now();
|
|
@@ -133,14 +133,12 @@ var TestCaseFhirBase = class {
|
|
|
133
133
|
GetFhirSocketClient = async () => {
|
|
134
134
|
try {
|
|
135
135
|
this.#clientSocketFetchCount++;
|
|
136
|
-
if (this.fhirClient) {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
}
|
|
136
|
+
if (this.fhirClient) if (this.#clientSocketFetchCount % this.#resetSocketClientTrigger === 0) {
|
|
137
|
+
this.fhirClient.ResetSocket();
|
|
138
|
+
await Sleep(3500);
|
|
139
|
+
this.fhirClient = null;
|
|
140
|
+
return this.GetFhirSocketClient();
|
|
141
|
+
} else return this.fhirClient;
|
|
144
142
|
const fhirOptions = this.#options.fhirOptions;
|
|
145
143
|
const options = {
|
|
146
144
|
fhirServerEndpoint: fhirOptions.stsfhirserverendpoint,
|