@nsshunt/ststestrunner 1.0.43 → 1.0.44
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
|
@@ -11974,11 +11974,18 @@ class FhirSocketClient {
|
|
|
11974
11974
|
if (socket && socket.connected === true) {
|
|
11975
11975
|
return;
|
|
11976
11976
|
}
|
|
11977
|
+
console.log(chalk.yellow(`FhirSocketClient:#WaitForSocketConnected(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] Waiting for connection ...`));
|
|
11977
11978
|
let connected = false;
|
|
11979
|
+
let attempts = 0;
|
|
11978
11980
|
while (!connected) {
|
|
11981
|
+
attempts++;
|
|
11982
|
+
if (attempts % 10 === 0) {
|
|
11983
|
+
console.log(chalk.yellow(`FhirSocketClient:#WaitForSocketConnected(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] waiting for connection attempts: [${attempts}].`));
|
|
11984
|
+
}
|
|
11979
11985
|
const socketRetVal = __privateGet$1(this, _socketUtils).GetSocket(__privateGet$1(this, _options2).socketClientName);
|
|
11980
11986
|
if (socketRetVal && socketRetVal.connected === true) {
|
|
11981
11987
|
connected = true;
|
|
11988
|
+
console.log(chalk.yellow(`FhirSocketClient:#WaitForSocketConnected(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] Connection completed after: [${attempts}] attempts.`));
|
|
11982
11989
|
break;
|
|
11983
11990
|
}
|
|
11984
11991
|
await Sleep(100);
|
|
@@ -12917,6 +12924,7 @@ class TestCaseFhirBase {
|
|
|
12917
12924
|
// `https://stscore.stsmda.org:3005/nsstsfhir/`,
|
|
12918
12925
|
socketIoCustomPath: "/stsfhirsocket/socket.io/",
|
|
12919
12926
|
socketClientName: "ststestrunner",
|
|
12927
|
+
//@@@ must be unique ????
|
|
12920
12928
|
timeout: 1e4,
|
|
12921
12929
|
//@@ config option as with all options above
|
|
12922
12930
|
socketIoClientHelperOptions: {
|