Skip to content

Deflake HTTP2ConnectionTests/testSimpleGetRequest #851

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

Merged
merged 1 commit into from
Aug 4, 2025

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Aug 4, 2025

Motivation:

testSimpleGetRequest asserts right after submitting the request for execution that no streams have been closed. While unlikely there's nothing to prevent this assertion from failing (and indeed it has failed): the request may have executed immediately and the stream closed before checking the delegate.

Modifications:

  • Remove the assertion

Result:

Tests are less flaky

Motivation:

testSimpleGetRequest asserts right after submitting the request for
execution that no streams have been closed. While unlikely there's
nothing to prevent this assertion from failing (and indeed it has
failed): the request may have executed immediately and the stream closed
before checking the delegate.

Modifications:

- Remove the assertion

Result:

Tests are less flaky
@glbrntt glbrntt added the semver/none No version bump required. label Aug 4, 2025
@glbrntt glbrntt merged commit 2edac1d into swift-server:main Aug 4, 2025
31 checks passed
@glbrntt glbrntt deleted the test-simple-get branch August 4, 2025 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/none No version bump required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants