Skip to content

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

test(storage-bypass): update cron policy fixture to multi-line form

Steven Enamakela3ca94bbe36d
diff --git a/scripts/__tests__/storage-bypass.test.mjs b/scripts/__tests__/storage-bypass.test.mjs
index 24b24074aa..db5cd0f8b1 100644
--- a/scripts/__tests__/storage-bypass.test.mjs
+++ b/scripts/__tests__/storage-bypass.test.mjs
@@ -141,7 +141,7 @@ test("the storage module, tests and allowlisted fallbacks are not flagged", () =
[`${SRC}/storage/driver.rs`]: "fn f() { let c = Connection::open(p); }\n",
[`${SRC}/foo/store_tests.rs`]: "fn f() { std::fs::write(p, b); }\n",
[`${SRC}/foo/tests/common.rs`]: "fn f() { File::create(p); }\n",
- [`${SRC}/cron/policy.rs`]: "fn f() { let c = Connection::open(p); }\n",
+ [`${SRC}/cron/policy.rs`]: "fn f() {\n let conn = Connection::open(&path)\n}\n",
},
[],
);