Skip to content

test(core): fix failing unit test - #43714

Closed
crisbeto wants to merge 1 commit into
angular:masterfrom
crisbeto:test-bed-test-error
Closed

crisbeto wants to merge 1 commit into
angular:masterfrom
crisbeto:test-bed-test-error

Conversation

@crisbeto

@crisbeto crisbeto commented Oct 5, 2021

Copy link
Copy Markdown
Member

Fixes a unit test that now fails, because rethrowing errors is enabled by default. The problem is that we're checking the behavior of a component that throws during ngOnDestroy, but since the resetTestingModule call itself throws, the test is considered as failing.

Fixes a unit test that now fails, because rethrowing errors is enabled by default. The problem is that we're checking the behavior of a component that throws during `ngOnDestroy`, but since the `resetTestingModule` call itself throws, the test is considered as failing.
@google-cla google-cla Bot added the cla: yes label Oct 5, 2021
@crisbeto
crisbeto marked this pull request as ready for review October 5, 2021 08:47
@pullapprove
pullapprove Bot requested a review from atscott October 5, 2021 08:47
@crisbeto crisbeto added action: review The PR is still awaiting reviews from at least one requested reviewer target: major This PR is targeted for the next major release labels Oct 5, 2021

@petebacondarwin petebacondarwin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@atscott atscott added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Oct 5, 2021
@dylhunn

dylhunn commented Oct 5, 2021

Copy link
Copy Markdown
Contributor

This PR was merged into the repository by commit 318cf91.

@dylhunn dylhunn closed this in 318cf91 Oct 5, 2021
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Nov 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants