Fold H2's new tests into existing ones: go/ at 327 unit tests (from 331), TypeScript at 48 (from 49)
The eight Go test functions H2 added become subtests of existing tests (catalogue's state test, the bundle's state test, the views test, the process state test, the testbus bus test, the seal byte-for-byte test), and four more are folded beside them (two seal, two process watch); the two TypeScript seal tests become one, and two more TypeScript tests are folded into their neighbours. No assertion is lost. Builds: design 47 H2 §819
This commit is contained in:
+3
-6
@@ -154,7 +154,9 @@ test("asked for again, a retired consumer is created again and announced re-enab
|
||||
}
|
||||
});
|
||||
|
||||
test("five passes are not enough: the same set must also hold for stableForMs", async () => {
|
||||
test("five passes are not enough: the same set must also hold for stableForMs, ten minutes by default", async () => {
|
||||
const { STABLE_FOR_MS } = await import("../dist/provider-loop/index.js");
|
||||
assert.equal(STABLE_FOR_MS, 10 * 60_000);
|
||||
const HOLD = 400;
|
||||
const w = await world(["a", "b", "c"], { stableForMs: HOLD });
|
||||
try {
|
||||
@@ -170,11 +172,6 @@ test("five passes are not enough: the same set must also hold for stableForMs",
|
||||
}
|
||||
});
|
||||
|
||||
test("the default hold is ten minutes", async () => {
|
||||
const { STABLE_FOR_MS } = await import("../dist/provider-loop/index.js");
|
||||
assert.equal(STABLE_FOR_MS, 10 * 60_000);
|
||||
});
|
||||
|
||||
test("an adapter without retire is MARK-ONLY: nothing changes in the backend, remove only on delete", async () => {
|
||||
const w = await world(["a", "b", "c"], { retire: false, del: false });
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user