Skip to content

Commit 0fcf18d

Browse files
devversiondylhunn
authored andcommitted
ci: increase jasmine default timeout for saucelabs legacy tests (#44281)
Previously, when we did not bundle tests, we also had the jasmine default timeout increased to 15000ms. This commit re-introduces this increased timeout by also maintaining a custom test init file for the legacy saucelab jobs. This is desirable as all of the Saucelabs test code is local in the `tools/legacy-saucelabs` folder. PR Close #44281
1 parent 444b2c4 commit 0fcf18d

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

tools/legacy-saucelabs/build-saucelabs-test-bundle.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ async function findSpecFiles() {
104104
async function createEntryPointSpecFile() {
105105
const testFiles = await findSpecFiles();
106106

107-
let specEntryPointFile = `import './tools/testing/init_browser_spec.ts';`;
107+
let specEntryPointFile = `import './tools/legacy-saucelabs/test-init.ts';`;
108108
let i = 0;
109109
const testNamespaces = [];
110110

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* @license
3+
* Copyright Google LLC All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
8+
9+
// Increase the timeout for specs as Saucelabs devices can be slow.
10+
jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000;
11+
12+
import '../testing/init_browser_spec';

0 commit comments

Comments
 (0)