Skip to content

Commit

Permalink
Fix running tests inside user units
Browse files Browse the repository at this point in the history
  • Loading branch information
mtorromeo committed Jan 7, 2022
1 parent 536092f commit 322ef4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/login.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ fn test_get_unit() {
assert!(uu.is_err());
assert!(su.is_err());
}
// This is either running in a system or in a user unit
// User units run under a system unit (E.g. user@1000.service)
true => {
assert_eq!(uu.is_err(), su.is_ok());
assert!(su.is_ok());
}
};
}
Expand Down

0 comments on commit 322ef4b

Please sign in to comment.