test: stabilize artifact pagination coverage
This commit is contained in:
@@ -119,11 +119,14 @@ describe("artifact comparison", () => {
|
|||||||
|
|
||||||
it("assembles bounded page sets for graphs larger than one page", async () => {
|
it("assembles bounded page sets for graphs larger than one page", async () => {
|
||||||
const root = await mkdtemp(join(tmpdir(), "rea-artifact-pages-"));
|
const root = await mkdtemp(join(tmpdir(), "rea-artifact-pages-"));
|
||||||
for (let index = 0; index < 501; index += 1)
|
await Promise.all(
|
||||||
await writeFile(
|
Array.from({ length: 501 }, async (_, index) =>
|
||||||
join(root, `file-${String(index).padStart(3, "0")}.txt`),
|
writeFile(
|
||||||
String(index),
|
join(root, `file-${String(index).padStart(3, "0")}.txt`),
|
||||||
);
|
String(index),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
const pages = await Promise.all([
|
const pages = await Promise.all([
|
||||||
observe(root),
|
observe(root),
|
||||||
observe(root, {
|
observe(root, {
|
||||||
@@ -137,7 +140,7 @@ describe("artifact comparison", () => {
|
|||||||
summary: { unchanged: 502, unknown: 0 },
|
summary: { unchanged: 502, unknown: 0 },
|
||||||
changes: { total: 0 },
|
changes: { total: 0 },
|
||||||
});
|
});
|
||||||
});
|
}, 15_000);
|
||||||
|
|
||||||
it("rejects non-inventory and tampered Evidence", async () => {
|
it("rejects non-inventory and tampered Evidence", async () => {
|
||||||
const root = await mkdtemp(join(tmpdir(), "rea-artifact-invalid-"));
|
const root = await mkdtemp(join(tmpdir(), "rea-artifact-invalid-"));
|
||||||
|
|||||||
Reference in New Issue
Block a user