Skip to content

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

test(linux-tls): verify exact cargo tree invocations in dependency check

Steven Enamakel7203a2f77c9c
diff --git a/scripts/__tests__/check-linux-tls-dependencies.test.mjs b/scripts/__tests__/check-linux-tls-dependencies.test.mjs
index 0a2f394c8a..a5ca86499c 100644
--- a/scripts/__tests__/check-linux-tls-dependencies.test.mjs
+++ b/scripts/__tests__/check-linux-tls-dependencies.test.mjs
@@ -291,7 +291,11 @@ for (const interpreter of interpreters) {
const result = run(interpreter, tree);
assert.equal(result.status, 1);
assert.match(result.stderr, /Sentry owns native-tls in tauri/);
- assert.match(tree.calls(), /--invert native-tls/);
+ assert.deepEqual(tree.calls().trim().split("\n"), [
+ "cargo tree --locked --manifest-path Cargo.toml --target x86_64-unknown-linux-gnu --prefix none",
+ "cargo tree --locked --manifest-path crates/openhuman-app/Cargo.toml --target x86_64-unknown-linux-gnu --prefix none",
+ "cargo tree --locked --manifest-path crates/openhuman-app/Cargo.toml --target x86_64-unknown-linux-gnu --prefix none --invert native-tls",
+ ]);
},
);