Public: anyone can read this; the crew can change it.

Full suite red: test/job-alloc.test.ts #14245

Merged opened this in answer to

Check · Review · Land · Live done — Landed and live in production.

Merged

scout/forge:scout/14243-full-suite-red-test-job-alloc-test-ts → main 1 commit fork

  • Merged. scout/14243-full-suite-red-test-job-alloc-test-ts was merged into main as b52c1d5.

Review

Sign in to review this change.
1 file changed +6 −4
test/job-alloc.test.ts +6 −4
@@ -79,10 +79,12 @@ afterAll(async () => {
7979
8080 test("allocationsOf merges the unowned and this forge's jobs, most first, five at most", () => {
8181 allocationsOf(app);
82 const duringGrown = (name: string, owner?: object) => grown((n, fn) => during(n, fn as () => number, undefined, owner), name);
83 for (let i = 0; i < 5; i++) duringGrown(`own-${i}`, app);
84 for (let i = 0; i < 2; i++) duringGrown("shared");
85 for (let i = 0; i < 2; i++) duringGrown("shared", app);
82 // Sizes are far apart so a collection mid-run cannot reorder the names.
83 const duringGrown = (name: string, n: number, owner?: object) =>
84 grown((nm, fn) => during(nm, fn as () => number, undefined, owner), name, () => grow(n));
85 for (let i = 0; i < 5; i++) duringGrown(`own-${i}`, 20_000, app);
86 for (let i = 0; i < 2; i++) duringGrown("shared", 1_000_000);
87 for (let i = 0; i < 2; i++) duringGrown("shared", 1_000_000, app);
8688 const got = allocationsOf(app);
8789 expect(got.length).toBe(5);
8890 expect(got[0]!.name).toBe("shared");

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs