Skip to content

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

test(tests): add test for nextest coverage retry backoff

Steven Enamakelf975da6cd92a
diff --git a/scripts/__tests__/rust-coverage-status.test.mjs b/scripts/__tests__/rust-coverage-status.test.mjs
index f76fbcaf53..a903feaa56 100644
--- a/scripts/__tests__/rust-coverage-status.test.mjs
+++ b/scripts/__tests__/rust-coverage-status.test.mjs
@@ -496,3 +496,12 @@ test("coverage suites record why cargo rebuilt and drop the verbose noise", () =
fs.rmSync(dir, { recursive: true, force: true });
}
});
+
+test("the nextest coverage run scales the model retry backoff down, overridably", () => {
+ const source = fs.readFileSync(runner, "utf8");
+ const block = source.slice(source.indexOf('if [ "${OH_COV_RUNNER:-cargo}" = "nextest" ]; then\n # One process per test'));
+ assert.match(
+ block.split("\nfi\n")[0],
+ /export OPENHUMAN_MODEL_RETRY_BACKOFF_MS="\$\{OPENHUMAN_MODEL_RETRY_BACKOFF_MS:-100\}"/,
+ );
+});