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

Fix flaky test in NIOAsyncWriter #2431

Merged
merged 2 commits into from
May 31, 2023
Merged

Conversation

FranzBusch
Copy link
Member

Motivation

We had flaky test in the writer where we were relying on some timing.

Modification

Change the test so that it is deterministic.

Result

Fixes #2427

@FranzBusch FranzBusch added the semver/none No version bump required. label May 22, 2023
@FranzBusch FranzBusch requested a review from Lukasa May 22, 2023 11:42
@Lukasa
Copy link
Contributor

Lukasa commented May 22, 2023

Seems like a nightly allocation regression, mind fixing it up?

@FranzBusch FranzBusch force-pushed the fb-fix-writer-tests branch 2 times, most recently from 4957a9c to 171f4a9 Compare May 23, 2023 09:53
@FranzBusch
Copy link
Member Author

@swift-server-bot test this please

# Motivation
We had flaky test in the writer where we were relying on some timing.

# Modification
Change the test so that it is deterministic.

# Result
Fixes apple#2427
@FranzBusch FranzBusch force-pushed the fb-fix-writer-tests branch from 171f4a9 to cd9bd63 Compare May 30, 2023 15:17
@FranzBusch FranzBusch force-pushed the fb-fix-writer-tests branch from cd9bd63 to 69ce691 Compare May 30, 2023 15:51
@FranzBusch FranzBusch merged commit b22575a into apple:main May 31, 2023
@FranzBusch FranzBusch deleted the fb-fix-writer-tests branch May 31, 2023 08:53
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.

Flaky test: NIOAsyncWriterTests.testWriterDeinitialized_whenWriterFinished
2 participants