Skip to content

Conversation

@grendello
Copy link
Contributor

We often see networ test "failures" caused by unreachability of one of the
servers those tests use. This creates false negatives since this is not really
the test failing but rather the environment not being correct and preventing the
test from performing its actual task.
This commit catches the WebException thrown in connection failed cases and
merely ignores the test instead of failing it. Full exception message and stack
trace is printed as part of the ignore message.

We often see networ test "failures" caused by unreachability of one of the
servers those tests use. This creates false negatives since this is not really
the test failing but rather the environment not being correct and preventing the
test from performing its actual task.
This commit catches the `WebException` thrown in connection failed cases and
merely ignores the test instead of failing it. Full exception message and stack
trace is printed as part of the ignore message.
@grendello grendello added Area: Unit Tests Issues with repo unit tests. run-tests-release labels Oct 9, 2018
@grendello grendello requested a review from jonpryor as a code owner October 9, 2018 08:42
@jonpryor jonpryor merged commit 608d950 into dotnet:master Oct 9, 2018
@grendello grendello deleted the improve-network-tests branch October 9, 2018 20:04
@github-actions github-actions bot locked and limited conversation to collaborators Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Area: Unit Tests Issues with repo unit tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants