Skip to content

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

test: split config/auth serialization assertion into two checks

Steven Enamakel3bd0f4a04bd0
diff --git a/scripts/__tests__/test-module-installation.test.mjs b/scripts/__tests__/test-module-installation.test.mjs
index e70c2f6e1b..d88bdeaef1 100644
--- a/scripts/__tests__/test-module-installation.test.mjs
+++ b/scripts/__tests__/test-module-installation.test.mjs
@@ -177,9 +177,15 @@ test("config/auth in-process integration tests run serially in both full runners
start >= 0 && end > start,
`${runner} has an in-process module runner`,
);
+ const runnerFunction = source.slice(start, end);
assert.match(
- source.slice(start, end),
- /(config|auth|app_state|connectivity)_e2e[\s\S]*?--test-threads=1/,
+ runnerFunction,
+ /\(config\|auth\|app_state\|connectivity\)_e2e/,
+ `${runner} isolates the four split config/auth groups`,
+ );
+ assert.match(
+ runnerFunction,
+ /--test-threads=1/,
`${runner} serializes auth RPC fixtures that share process-wide listeners`,
);
}