Clean tests

This commit is contained in:
2026-05-07 17:59:39 -07:00
parent f76a020b1e
commit 8395195ac1
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -71,13 +71,12 @@ fn test_generated_code_builds() {
all_code.push_str(&content);
all_code.push_str("\n");
}
let final_code = all_code.replace("use crate::", "use roto::");
let lib_path = temp_project_dir.join("src/lib.rs");
fs::write(lib_path, final_code).expect("Failed to write generated code to src/lib.rs");
fs::write(lib_path, all_code).expect("Failed to write generated code to src/lib.rs");
// 5. Attempt to build the project
let build_status = Command::new("cargo")
.args(["build"])
.args(["--offline", "build"])
.current_dir(&temp_project_dir)
.status()
.expect("Failed to run cargo build");
+1 -1
View File
@@ -60,7 +60,7 @@ fn test_types_generated_code_builds() {
// 5. Attempt to build the project
let build_status = Command::new("cargo")
.args(["build"])
.args(["--offline", "build"])
.current_dir(&temp_project_dir)
.status()
.expect("Failed to run cargo build");