Merge pull request #79 from PR0M3TH3AN/codex/add-cfg(unix)-to-watch_start_and_stop_quickly-test

Limit watch test to unix
This commit is contained in:
thePR0M3TH3AN
2025-05-24 21:57:25 -04:00
committed by GitHub

View File

@@ -8,8 +8,10 @@ use libmarlin::{self as marlin, db};
use marlin_cli::cli::watch::WatchCmd;
use marlin_cli::cli::{watch, Format};
#[cfg(unix)]
#[test]
fn watch_start_and_stop_quickly() {
// TODO: Use a Windows console control handler and enable this test on Windows.
let tmp = tempdir().unwrap();
let db_path = tmp.path().join("index.db");
std::env::set_var("MARLIN_DB_PATH", &db_path);