Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 2eb12a0

Browse files
committed
test(e2e): make test less flakey-prone
1 parent bd63b22 commit 2eb12a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/e2e/fixtures/ng-route-promise/script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ angular.
2525
return {
2626
letters: function($q) {
2727
return $q(function(resolve) {
28-
window.setTimeout(resolve, 1000, ['a', 'b', 'c', 'd', 'e']);
28+
window.setTimeout(resolve, 2000, ['a', 'b', 'c', 'd', 'e']);
2929
});
3030
}
3131
};

test/e2e/tests/ng-route-promise.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('ngRoute promises', function() {
1111

1212
it('should time out if the promise takes long enough', function() {
1313
// Don't try this at home kids, I'm a protractor dev
14-
browser.manage().timeouts().setScriptTimeout(1500);
14+
browser.manage().timeouts().setScriptTimeout(1000);
1515
browser.waitForAngular().then(function() {
1616
fail('waitForAngular() should have timed out, but didn\'t');
1717
}, function(error) {

0 commit comments

Comments
 (0)