@nsshunt/ststestrunner 1.0.1 → 1.0.3

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.
@@ -8979,7 +8979,10 @@ class TestCaseFhirBase {
8979
8979
  await __privateGet(this, _PublishTelemetryData2).call(this);
8980
8980
  __privateSet(this, _publishTelemetryCount2, 0);
8981
8981
  __privateSet(this, _publishTelemetryTimeout2, null);
8982
- }, __privateGet(this, _publishTelemetryTimeoutVal2)).unref());
8982
+ }, __privateGet(this, _publishTelemetryTimeoutVal2)));
8983
+ if (isNode$2) {
8984
+ __privateGet(this, _publishTelemetryTimeout2).unref();
8985
+ }
8983
8986
  }
8984
8987
  });
8985
8988
  __publicField(this, "PublishTelemetry", async () => {
@@ -9087,7 +9090,11 @@ class TestCaseFhirBase {
9087
9090
  }
9088
9091
  SleepImmediate() {
9089
9092
  return new Promise((resolve, reject) => {
9090
- setImmediate(resolve);
9093
+ if (isNode$2) {
9094
+ setImmediate(resolve);
9095
+ } else {
9096
+ resolve();
9097
+ }
9091
9098
  });
9092
9099
  }
9093
9100
  async SleepImmediateEx() {
@@ -9133,7 +9140,8 @@ class TestCaseFhir01 extends TestCaseFhirBase {
9133
9140
  if (this.runner.instrumentData.requestCount % options.agentResetMod === 0) {
9134
9141
  this.runner.instrumentData.message.push(chalk$1.green(`Iteration: [${this.runner.iteration} #authUtilsNode(): Agent Reset`));
9135
9142
  }
9136
- await this.GetAccessToken();
9143
+ const retVal = await this.GetAccessToken();
9144
+ this.Debug(`ExecuteRunner(): RetVal: [${retVal}]`);
9137
9145
  this.accesssToken = null;
9138
9146
  this.runner.instrumentData.coreCount = 1;
9139
9147
  this.runner.instrumentData.requestCount++;