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

Spurious test failures: user lookups not stable #1

Closed
fabianfreyer opened this issue Jul 5, 2018 · 1 comment
Closed

Spurious test failures: user lookups not stable #1

fabianfreyer opened this issue Jul 5, 2018 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@fabianfreyer
Copy link
Contributor

fabianfreyer commented Jul 5, 2018

The tests fail every once in a while, because the wrong UID is returned when looking up the nobody user.

The weird thing is, this only seems to happen in cargo test, but not when filtering out the exact test that fails: cargo test --lib tests::parse_rule.

@fabianfreyer fabianfreyer added bug Something isn't working help wanted Extra attention is needed labels Jul 5, 2018
@fabianfreyer
Copy link
Contributor Author

see e.g.: https://cirrus-ci.com/task/6250330503249920:

failures:
---- tests::parse_subject stdout ----
thread 'tests::parse_subject' panicked at 'assertion failed: `(left == right)`
  left: `User(User(4294967295))`,
 right: `User(User(65534))`', src/lib.rs:1865:9
note: Run with `RUST_BACKTRACE=1` for a backtrace.
failures:
    tests::parse_subject
test result: FAILED. 11 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out
error: test failed, to rerun pass '--lib'
Exit status: 101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant