diff --git a/spec/operators/audit-spec.ts b/spec/operators/audit-spec.ts index 10f8bf70ed..78de9b0f75 100644 --- a/spec/operators/audit-spec.ts +++ b/spec/operators/audit-spec.ts @@ -395,7 +395,7 @@ describe('audit operator', () => { }); it('should audit by promise resolves', (done) => { - const e1 = interval(10).pipe(take(5)); + const e1 = interval(1).pipe(take(5)); const expected = [0, 1, 2, 3, 4]; e1.pipe(audit(() => Promise.resolve(42))).subscribe({ @@ -413,7 +413,7 @@ describe('audit operator', () => { }); it('should raise error when promise rejects', (done) => { - const e1 = interval(10).pipe(take(10)); + const e1 = interval(1).pipe(take(10)); const expected = [0, 1, 2]; const error = new Error('error'); diff --git a/spec/operators/delayWhen-spec.ts b/spec/operators/delayWhen-spec.ts index d55f52dd9a..cbecde8294 100644 --- a/spec/operators/delayWhen-spec.ts +++ b/spec/operators/delayWhen-spec.ts @@ -340,7 +340,7 @@ describe('delayWhen', () => { }); it('should delayWhen Promise resolves', (done) => { - const e1 = interval(10).pipe(take(5)); + const e1 = interval(1).pipe(take(5)); const expected = [0, 1, 2, 3, 4]; e1.pipe(delayWhen(() => Promise.resolve(42))).subscribe({ @@ -358,7 +358,7 @@ describe('delayWhen', () => { }); it('should raise error when Promise rejects', (done) => { - const e1 = interval(10).pipe(take(10)); + const e1 = interval(1).pipe(take(10)); const expected = [0, 1, 2]; const error = new Error('err');