Skip to content

fix flaky TestRequestStatVFS - #676

Merged
drakkan merged 1 commit into
pkg:masterfrom
christhomas:fix-request-statvfs-test
Oct 17, 2026
Merged

drakkan merged 1 commit into
pkg:masterfrom
christhomas:fix-request-statvfs-test

Conversation

@christhomas

Copy link
Copy Markdown
Contributor

Fixes #463

TestRequestStatVFS compared Bavail and Bfree for /, which change when anything else writes to the disk between the two calls. This compares only stable values, as the client StatVFS tests do (and as #666 did for macOS).

With another process writing to the disk, the old test failed 41 times in 300 runs (go test -count=300 -run 'TestRequestStatVFS$'), and the new one passed every run.

Compare only values that don't change when something else writes to
the disk, as the client StatVFS tests do. Bavail and Bfree can change
between the two calls.

Fixes pkg#463
@drakkan
drakkan merged commit eb379c1 into pkg:master Oct 17, 2026
4 checks passed
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.

StatVFS is flaky

3 participants