@nsshunt/ststestrunner 1.1.63 → 1.1.65
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.cjs
CHANGED
|
@@ -35825,6 +35825,19 @@ var WorkerFhirTestCases = class extends _nsshunt_stsrunnerframework.AbstractRunn
|
|
|
35825
35825
|
CreateAsyncRunner = async (testRunnerTelemetryPayload) => {
|
|
35826
35826
|
return AsyncRunnerFactory.CreateAsyncRunner(this, testRunnerTelemetryPayload);
|
|
35827
35827
|
};
|
|
35828
|
+
async ProcessPreTerminateWorkerMessage(messagePayload) {
|
|
35829
|
+
this.logger.debug(chalk.default.rgb(220, 100, 0)(`ProcessPreTerminateWorkerMessage: [${JSON.stringify(messagePayload, null, 2)}]`));
|
|
35830
|
+
if (this.fhirClient) {
|
|
35831
|
+
this.logger.debug(chalk.default.rgb(220, 100, 0)(`ProcessPreTerminateWorkerMessage: ResetSocket()`));
|
|
35832
|
+
this.fhirClient.ResetSocket();
|
|
35833
|
+
this.fhirClient = void 0;
|
|
35834
|
+
}
|
|
35835
|
+
await (0, _nsshunt_stsutils.Sleep)(250);
|
|
35836
|
+
return {
|
|
35837
|
+
originalMessage: { ...messagePayload },
|
|
35838
|
+
myresponsepreterminate: `I got: [${JSON.stringify(messagePayload.payload.data)}]`
|
|
35839
|
+
};
|
|
35840
|
+
}
|
|
35828
35841
|
};
|
|
35829
35842
|
//#endregion
|
|
35830
35843
|
exports.WorkerFhirTestCases = WorkerFhirTestCases;
|