Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUIC] Fixed some tests leaking unobserved exceptions #104444

Merged
merged 2 commits into from
Jul 9, 2024

Conversation

ManickaP
Copy link
Member

@ManickaP ManickaP commented Jul 4, 2024

Fixes leaking unobserved exceptions from S.N.Quic tests.
Adds print out for the leaking exceptions - I can remove it if it's considered spam.

The remaining issue comes from QuicConnection._connectionCloseTcs but the fix is a bit more involved, I'll do it in separate PR.

Contributes to #80111

Copy link
Contributor

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

@ManickaP ManickaP requested a review from a team July 4, 2024 15:31
@@ -62,11 +63,14 @@ public void NoSupportedCiphers_ThrowsArgumentException(TlsCipherSuite[] ciphers)
return ValueTask.FromResult(serverOptions);
}
};
Assert.ThrowsAsync<ArgumentException>(async () => await CreateQuicListener(listenerOptions));
await using var listener = await CreateQuicListener(listenerOptions);
Copy link
Member

Choose a reason for hiding this comment

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

How come this was supposed to be throwing before?

Copy link
Member

Choose a reason for hiding this comment

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

it is possible it was never throwing and the test was wrong, the Tasks were not awaited in this test at all before this PR

Copy link
Member

Choose a reason for hiding this comment

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

Looking at this again, the QuicListener creation should not throw, because we don't check the CipherSuitesPolicy there, we only access it when we get an incoming connection.

Copy link
Member

@rzikm rzikm left a comment

Choose a reason for hiding this comment

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

LGTM with few nits

@ManickaP ManickaP merged commit d6767ce into dotnet:main Jul 9, 2024
83 checks passed
@ManickaP ManickaP deleted the quic-unobserved-ex branch July 15, 2024 13:41
@github-actions github-actions bot locked and limited conversation to collaborators Aug 15, 2024
@karelz karelz added this to the 9.0.0 milestone Sep 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants