Skip to content

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

test(scripts): replace inverted-call assertion with full call log

Steven Enamakelac71518cac46
diff --git a/scripts/__tests__/check-linux-tls-dependencies.test.mjs b/scripts/__tests__/check-linux-tls-dependencies.test.mjs
index 022579b0c0..cfade93f84 100644
--- a/scripts/__tests__/check-linux-tls-dependencies.test.mjs
+++ b/scripts/__tests__/check-linux-tls-dependencies.test.mjs
@@ -163,10 +163,12 @@ for (const interpreter of interpreters) {
});
const result = run(interpreter, tree);
assert.equal(result.status, 0, result.stderr);
- const inverted = [...tree.calls().matchAll(/--invert (reqwest@\S+)/g)].map(
- (m) => m[1],
- );
- assert.deepEqual(inverted, ["[email protected]", "[email protected]"]);
+ 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 [email protected]",
+ "cargo tree --locked --manifest-path crates/openhuman-app/Cargo.toml --target x86_64-unknown-linux-gnu --prefix none --invert [email protected]",
+ ]);
});
test(`[${interpreter} ${version}] a Sentry-owned reqwest 0.13 fails the policy`, SKIP, () => {