mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
[chore]: fix automated tests (#2506)
* fix automated tests * automated test gh workflow * rename workflow * ignore test that relies on physical hardware * use HOME env var when relevant * optimize * fix test
This commit is contained in:
@@ -1201,11 +1201,11 @@ mod fns {
|
||||
|
||||
#[tokio::test]
|
||||
async fn test_is_subset() {
|
||||
assert!(
|
||||
!is_subset("/home/drbonez", "/home/drbonez/code/fakedir/../../..")
|
||||
.await
|
||||
.unwrap()
|
||||
)
|
||||
let home = std::env::var("HOME").unwrap();
|
||||
let home = Path::new(&home);
|
||||
assert!(!is_subset(home, &home.join("code/fakedir/../../.."))
|
||||
.await
|
||||
.unwrap())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user