Skip to content

Stabilize buffered file writer tests#45

Merged
passsy merged 1 commit into
mainfrom
codex/fix-nightly-beta-io-overrides
Jun 13, 2026
Merged

Stabilize buffered file writer tests#45
passsy merged 1 commit into
mainfrom
codex/fix-nightly-beta-io-overrides

Conversation

@passsy

@passsy passsy commented Jun 13, 2026

Copy link
Copy Markdown
Owner

The beta nightly exposed a race in the buffered file writer tests where fakeAsyncWithDrain guessed when real file I/O had settled.

Add a test-only IOOverrides wrapper that delegates to the real filesystem while tracking RandomAccessFile.flush() completions, then wait for those flushes before continuing fake-time assertions.

Verified locally with dart analyze, dart test, and a clean dart:beta linux/amd64 container run.

@passsy passsy merged commit c2ab56e into main Jun 13, 2026
7 checks passed
@passsy passsy deleted the codex/fix-nightly-beta-io-overrides branch June 13, 2026 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant