@itwin/build-tools 5.13.0-dev.6 → 5.13.0-dev.7

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.
@@ -73,7 +73,7 @@ class BentleyMochaReporter extends Spec {
73
73
  if (i + 1 < process.argv.length && process.argv[i + 1] === "chrome") {
74
74
  this._chrome = true;
75
75
  process.on("chrome-test-runner-done", () => {
76
- this.confirmExit();
76
+ this.confirmExit(30);
77
77
  });
78
78
  }
79
79
  break;
@@ -82,7 +82,7 @@ class BentleyMochaReporter extends Spec {
82
82
  }
83
83
  }
84
84
  }
85
- confirmExit(seconds = 30) {
85
+ confirmExit(seconds = 10) {
86
86
  // NB: By calling unref() on this timer, we stop it from keeping the process alive, so it will only fire if _something else_ is still keeping
87
87
  // the process alive after n seconds. This also has the benefit of preventing the timer from showing up in wtfnode's dump of open handles.
88
88
  setTimeout(() => {
@@ -126,7 +126,7 @@ class BentleyMochaReporter extends Spec {
126
126
  // Detect hangs caused by tests that leave timers/other handles open - not possible in electron frontends.
127
127
  if (!this._electron && !this._chrome) {
128
128
  // Not running in Chrome or Electron, so check for open handles.
129
- this.confirmExit(30);
129
+ this.confirmExit();
130
130
  }
131
131
  if (!this.stats.pending)
132
132
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/build-tools",
3
- "version": "5.13.0-dev.6",
3
+ "version": "5.13.0-dev.7",
4
4
  "description": "Bentley build tools",
5
5
  "license": "MIT",
6
6
  "repository": {