Skip to content

Commit

Permalink
Work around issue with pauseTest() timing out. (#497)
Browse files Browse the repository at this point in the history
Work around issue with pauseTest() timing out.
  • Loading branch information
rwjblue committed May 17, 2019
2 parents 752f002 + e613f72 commit 744927e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addon-test-support/ember-qunit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ export function setupTest(hooks, _options) {
this.pauseTest = function QUnit_pauseTest() {
assert.timeout(-1); // prevent the test from timing out

// This is a temporary work around for
// https://github.com/emberjs/ember-qunit/issues/496 this clears the
// timeout that would fail the test when it hits the global testTimeout
// value.
clearTimeout(QUnit.config.timeout);
return originalPauseTest.call(this);
};
});
Expand Down

0 comments on commit 744927e

Please sign in to comment.