@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.
@@ -35802,6 +35802,19 @@ var WorkerFhirTestCases = class extends AbstractRunnerExecutionWorker {
35802
35802
  CreateAsyncRunner = async (testRunnerTelemetryPayload) => {
35803
35803
  return AsyncRunnerFactory.CreateAsyncRunner(this, testRunnerTelemetryPayload);
35804
35804
  };
35805
+ async ProcessPreTerminateWorkerMessage(messagePayload) {
35806
+ this.logger.debug(chalk.rgb(220, 100, 0)(`ProcessPreTerminateWorkerMessage: [${JSON.stringify(messagePayload, null, 2)}]`));
35807
+ if (this.fhirClient) {
35808
+ this.logger.debug(chalk.rgb(220, 100, 0)(`ProcessPreTerminateWorkerMessage: ResetSocket()`));
35809
+ this.fhirClient.ResetSocket();
35810
+ this.fhirClient = void 0;
35811
+ }
35812
+ await Sleep(250);
35813
+ return {
35814
+ originalMessage: { ...messagePayload },
35815
+ myresponsepreterminate: `I got: [${JSON.stringify(messagePayload.payload.data)}]`
35816
+ };
35817
+ }
35805
35818
  };
35806
35819
  //#endregion
35807
35820
  export { WorkerFhirTestCases };