Skip to content

Commit f96dc43

Browse files
committed
Remove timeout overrides for beforeEach and afterEach
1 parent 5597515 commit f96dc43

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

testing/init-tests.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ import PreactEnzyme from 'enzyme-adapter-preact-pure';
5454
* TODO(wg-infra, #23837): Further refactor and clean up this file.
5555
*/
5656

57-
// Increase the before/after each timeout since certain times they have timedout
58-
// during the normal 2000 allowance.
59-
const BEFORE_AFTER_TIMEOUT = 5000;
60-
6157
// This is the entry point for all AMP unit and integration tests.
6258
initializeTests();
6359

@@ -106,7 +102,6 @@ before(function () {
106102
});
107103

108104
beforeEach(function () {
109-
this.timeout(BEFORE_AFTER_TIMEOUT);
110105
resetTestingState();
111106
setTestName(this.currentTest.fullTitle());
112107
maybeStubConsoleInfoLogWarn();
@@ -135,7 +130,6 @@ afterEach(function () {
135130
restoreConsoleSandbox();
136131
restoreConsoleError();
137132
restoreAsyncErrorThrows();
138-
this.timeout(BEFORE_AFTER_TIMEOUT);
139133
const cleanupTagNames = ['link', 'meta', 'iframe'];
140134
const cleanup = document.querySelectorAll(cleanupTagNames.join(','));
141135
for (let i = 0; i < cleanup.length; i++) {

0 commit comments

Comments
 (0)