diff --git a/kclvm/driver/src/tests.rs b/kclvm/driver/src/tests.rs index 632f7c5ee..7a2a58525 100644 --- a/kclvm/driver/src/tests.rs +++ b/kclvm/driver/src/tests.rs @@ -358,6 +358,16 @@ fn test_tool_fetch_metadata(tool: impl Toolchain) { assert_eq!(pkgs.len(), 1); assert!(pkgs.get("kcl4").is_some()); assert_eq!(pkgs.get("kcl4").unwrap().name, "kcl4"); + if pkgs + .get("kcl4") + .unwrap() + .manifest_path + .clone() + .canonicalize() + .is_err() + { + panic!("{}", format!("{:?}", pkgs.get("kcl4").unwrap().manifest_path)) + } assert_eq!( pkgs.get("kcl4") .unwrap()