Skip to content

Commit 3eb7bdd

Browse files
devversionkara
authored andcommitted
build: duplicate update of jasmine timeout interval (#5085)
1 parent b1a9cb5 commit 3eb7bdd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/karma-test-shim.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
/*global jasmine, __karma__, window*/
22
Error.stackTraceLimit = Infinity;
3-
jasmine.DEFAULT_TIMEOUT_INTERVAL = 3000;
3+
4+
// The default time that jasmine waits for an asynchronous test to finish is five seconds.
5+
// If this timeout is too short the CI may fail randomly because our asynchronous tests can
6+
// take longer in some situations (e.g Saucelabs and Browserstack tunnels)
7+
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
48

59
__karma__.loaded = function () {};
610

@@ -85,8 +89,6 @@ function configureTestBed() {
8589
var testing = providers[0];
8690
var testingBrowser = providers[1];
8791

88-
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
89-
9092
var testBed = testing.TestBed.initTestEnvironment(
9193
testingBrowser.BrowserDynamicTestingModule,
9294
testingBrowser.platformBrowserDynamicTesting()

0 commit comments

Comments
 (0)