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

Commit 53fb909

Browse files
committed
test(ngMock): fix Firefox craches on Travis
This test keeps causing Firefox 47 (currently used on Travis) to crash and fail the build. The test passes locally (on Firefox 53). Lowering the loop count from 1000 to 100 seems to fix the issue. (Note: The crach only affects the mocked implementation of `$interval` and does not happen locally.) Closes #16040
1 parent 420ceb6 commit 53fb909

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/ngMock/angular-mocksSpec.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -358,12 +358,12 @@ describe('ngMock', function() {
358358
$interval(function() { counterA++; });
359359
$interval(function() { counterB++; }, 0);
360360

361-
$interval.flush(1000);
362-
expect(counterA).toBe(1000);
363-
expect(counterB).toBe(1000);
364-
$interval.flush(1000);
365-
expect(counterA).toBe(2000);
366-
expect(counterB).toBe(2000);
361+
$interval.flush(100);
362+
expect(counterA).toBe(100);
363+
expect(counterB).toBe(100);
364+
$interval.flush(100);
365+
expect(counterA).toBe(200);
366+
expect(counterB).toBe(200);
367367
}));
368368

369369

0 commit comments

Comments
 (0)