Skip to content

Commit 744927e

Browse files
author
Robert Jackson
authored
Work around issue with pauseTest() timing out. (#497)
Work around issue with pauseTest() timing out.
2 parents 752f002 + e613f72 commit 744927e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

addon-test-support/ember-qunit/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ export function setupTest(hooks, _options) {
3434
this.pauseTest = function QUnit_pauseTest() {
3535
assert.timeout(-1); // prevent the test from timing out
3636

37+
// This is a temporary work around for
38+
// https://github.com/emberjs/ember-qunit/issues/496 this clears the
39+
// timeout that would fail the test when it hits the global testTimeout
40+
// value.
41+
clearTimeout(QUnit.config.timeout);
3742
return originalPauseTest.call(this);
3843
};
3944
});

0 commit comments

Comments
 (0)