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

async test zone should not throw an exception when it encounters setInterval #640

@vikerman

Description

@vikerman

Users are having problems using the async test zone on Angular with RxJS and other libraries. There are a variety of RxJS operators that temporarily setup a setInterval which just throws an exception in the async test zone.

The fix is just to not throw the exception and let the user cancel the timer as required. The test will timeout if they don't cancel the timer since the async test zone will never flag completion with the outstanding timer macro task.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions