[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:
Aiden McClelland
2023-11-10 14:15:47 -07:00
committed by GitHub
parent 521014cd1f
commit b7b022cc7b
10 changed files with 97 additions and 20 deletions

View File

@@ -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())
}
}