From ebcc95b9f2ee99afc1bfb6d0b9b007fce1dfe2ea Mon Sep 17 00:00:00 2001 From: "Michael A. Kuykendall" Date: Fri, 9 Jan 2026 11:39:02 -0600 Subject: [PATCH] fix: add serial test attribute and safer env var check in issue_012 test --- tests/regression/issue_012_custom_model_dirs.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/regression/issue_012_custom_model_dirs.rs b/tests/regression/issue_012_custom_model_dirs.rs index fa796a0..baf7974 100644 --- a/tests/regression/issue_012_custom_model_dirs.rs +++ b/tests/regression/issue_012_custom_model_dirs.rs @@ -12,6 +12,7 @@ mod issue_012_tests { use std::path::PathBuf; #[test] + #[serial_test::serial] fn test_custom_model_directory_environment_variables() { // Test that custom model directories are detected via environment variables let test_dirs = vec![ @@ -26,7 +27,7 @@ mod issue_012_tests { let custom_path = PathBuf::from(path); // Verify the path was set correctly - assert_eq!(env::var(env_var).unwrap(), path); + assert_eq!(env::var(env_var).ok(), Some(path.to_string())); // Test that directory scanning doesn't crash with custom paths // Even if directory doesn't exist, should handle gracefully