@nsshunt/ststestrunner 1.0.37 → 1.0.38
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
|
@@ -20492,32 +20492,32 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
|
|
|
20492
20492
|
});
|
|
20493
20493
|
__privateSet(this, _options5, options);
|
|
20494
20494
|
__privateSet(this, _clientName, options.name);
|
|
20495
|
+
__privateGet(this, _EmitEvent).call(this, "Starting", {});
|
|
20496
|
+
let socketUtilsoptions = {
|
|
20497
|
+
logger: defaultLogger
|
|
20498
|
+
};
|
|
20499
|
+
if (__privateGet(this, _options5).agentOptions) {
|
|
20500
|
+
const agentManager = new AgentManager({
|
|
20501
|
+
agentOptions: __privateGet(this, _options5).agentOptions,
|
|
20502
|
+
httpAgentFactory(options2) {
|
|
20503
|
+
return new https.Agent(options2);
|
|
20504
|
+
},
|
|
20505
|
+
httpsAgentFactory(options2) {
|
|
20506
|
+
return new https.Agent(options2);
|
|
20507
|
+
}
|
|
20508
|
+
});
|
|
20509
|
+
socketUtilsoptions.agentManager = agentManager;
|
|
20510
|
+
}
|
|
20511
|
+
__privateSet(this, _socketUtils2, new SocketIoClientHelper2(socketUtilsoptions));
|
|
20512
|
+
__privateGet(this, _info2).call(this, chalk$1.yellow(`STS Test Runner Service Instance.`));
|
|
20513
|
+
__privateGet(this, _info2).call(this, chalk$1.yellow(`This service instance emulates instances of the ststestrunnernode service.`));
|
|
20514
|
+
__privateGet(this, _info2).call(this, chalk$1.yellow(`Service Instance ID: [${__privateGet(this, _id2)}]`));
|
|
20515
|
+
__privateGet(this, _info2).call(this, chalk$1.yellow(`Service Instance Name: [${__privateGet(this, _options5).name}]`));
|
|
20516
|
+
__privateGet(this, _info2).call(this, chalk$1.yellow(`Options: [${JSON.stringify(options)}]`));
|
|
20517
|
+
__privateSet(this, _wm, __privateGet(this, _options5).CreateSTSWorkerManager());
|
|
20518
|
+
__privateGet(this, _info2).call(this, chalk$1.yellow(`Worker Manager ID: [${__privateGet(this, _wm).id}]`));
|
|
20519
|
+
__privateGet(this, _SetupWSSClient2).call(this, __privateGet(this, _clientName), []);
|
|
20495
20520
|
const start = async () => {
|
|
20496
|
-
__privateGet(this, _EmitEvent).call(this, "Starting", {});
|
|
20497
|
-
let socketUtilsoptions = {
|
|
20498
|
-
logger: defaultLogger
|
|
20499
|
-
};
|
|
20500
|
-
if (__privateGet(this, _options5).agentOptions) {
|
|
20501
|
-
const agentManager = new AgentManager({
|
|
20502
|
-
agentOptions: __privateGet(this, _options5).agentOptions,
|
|
20503
|
-
httpAgentFactory(options2) {
|
|
20504
|
-
return new https.Agent(options2);
|
|
20505
|
-
},
|
|
20506
|
-
httpsAgentFactory(options2) {
|
|
20507
|
-
return new https.Agent(options2);
|
|
20508
|
-
}
|
|
20509
|
-
});
|
|
20510
|
-
socketUtilsoptions.agentManager = agentManager;
|
|
20511
|
-
}
|
|
20512
|
-
__privateSet(this, _socketUtils2, new SocketIoClientHelper2(socketUtilsoptions));
|
|
20513
|
-
__privateGet(this, _info2).call(this, chalk$1.yellow(`STS Test Runner Service Instance.`));
|
|
20514
|
-
__privateGet(this, _info2).call(this, chalk$1.yellow(`This service instance emulates instances of the ststestrunnernode service.`));
|
|
20515
|
-
__privateGet(this, _info2).call(this, chalk$1.yellow(`Service Instance ID: [${__privateGet(this, _id2)}]`));
|
|
20516
|
-
__privateGet(this, _info2).call(this, chalk$1.yellow(`Service Instance Name: [${__privateGet(this, _options5).name}]`));
|
|
20517
|
-
__privateGet(this, _info2).call(this, chalk$1.yellow(`Options: [${JSON.stringify(options)}]`));
|
|
20518
|
-
__privateSet(this, _wm, __privateGet(this, _options5).CreateSTSWorkerManager());
|
|
20519
|
-
__privateGet(this, _info2).call(this, chalk$1.yellow(`Worker Manager ID: [${__privateGet(this, _wm).id}]`));
|
|
20520
|
-
__privateGet(this, _SetupWSSClient2).call(this, __privateGet(this, _clientName), []);
|
|
20521
20521
|
for (let i = 0; i < __privateGet(this, _options5).workers; i++) {
|
|
20522
20522
|
await this.AddWorker({
|
|
20523
20523
|
tags: [""],
|