Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(test): use named binding for workspace tempdir in symlink tests\n\nThe workspace tempdir was previously bound to `_ws`, suppressing the compiler warning but also discarding the value. By binding it to `ws`, the directory is kept alive for the duration of the test, preventing the temporary directory from being dropped prematurely and ensuring the test environment remains valid.\n\nAuto-committed-on: dragonfly\n

Steven Enamakel3da8e9e2a9fd
diff --git a/src/embed/harness/skills_tests.rs b/src/embed/harness/skills_tests.rs
index 37f8689b95..3e866cf84b 100644
--- a/src/embed/harness/skills_tests.rs
+++ b/src/embed/harness/skills_tests.rs
@@ -69,7 +69,7 @@ fn a_symlinked_bundle_is_skipped_not_followed() {
// Copying one in would smuggle past a control that exists because this root
// is scanned with no trust marker.
let src = tempfile::tempdir().expect("src");
- let _ws = tempfile::tempdir().expect("ws");
+ let ws = tempfile::tempdir().expect("ws");
let outside = tempfile::tempdir().expect("outside");
bundle(&outside.path().join("evil"), "SKILL.md", "# evil");
@@ -84,7 +84,7 @@ fn a_symlinked_bundle_is_skipped_not_followed() {
#[test]
fn a_symlink_inside_a_bundle_is_skipped_not_followed() {
let src = tempfile::tempdir().expect("src");
- let _ws = tempfile::tempdir().expect("ws");
+ let ws = tempfile::tempdir().expect("ws");
let outside = tempfile::tempdir().expect("outside");
std::fs::write(outside.path().join("secret"), "token").expect("write");