Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

filesystem space test should use >= instead of > #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ScriptDevil
Copy link

On my machine, cargo test failed because my /tmp was completely empty.

[scriptdevil@eudaimonia src]$ cargo test test::filesystem_space
   Compiling fs3 v0.5.0 (/home/scriptdevil/hacking/fs3-rs)
    Finished test [unoptimized + debuginfo] target(s) in 0.62s
     Running /home/scriptdevil/hacking/fs3-rs/target/debug/deps/fs3-e4d56ec552b21234

running 1 test
test test::filesystem_space ... FAILED

failures:

---- test::filesystem_space stdout ----
[src/test.rs:186] free_space = 2056105984
[src/test.rs:187] total_space = 2056105984
[src/test.rs:188] available_space = 2056105984
thread 'test::filesystem_space' panicked at 'assertion failed: total_space > free_space', src/test.rs:189:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

@Coding-Badly
Copy link

That's odd. How is available_space the same as total_space? Does the volume truly have no overhead?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants