From 322ef4b50067d5b9ccfeedc9b3f899e0c10789cc Mon Sep 17 00:00:00 2001 From: Massimiliano Torromeo Date: Fri, 7 Jan 2022 18:19:22 +0100 Subject: [PATCH] Fix running tests inside user units --- tests/login.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/login.rs b/tests/login.rs index c6711f2..1e8523a 100644 --- a/tests/login.rs +++ b/tests/login.rs @@ -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()); } }; }