MCPcopy Create free account
hub / github.com/Autoparallel/learner / test_daemon_directory_creation

Function test_daemon_directory_creation

crates/learnerd/src/daemon/mod.rs:380–389  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

378
379 #[test]
380 fn test_daemon_directory_creation() {
381 let (daemon, _temp) = setup_test_daemon();
382 let daemon_clone = daemon.clone();
383 // Start should create directories
384 let _handle = std::thread::spawn(move || daemon.start());
385 std::thread::sleep(std::time::Duration::from_secs(1));
386
387 assert!(daemon_clone.working_dir.exists(), "Working directory should be created");
388 assert!(daemon_clone.log_dir.exists(), "Log directory should be created");
389 }
390}

Callers

nothing calls this directly

Calls 2

setup_test_daemonFunction · 0.85
startMethod · 0.80

Tested by

no test coverage detected