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

Full suite red: test/apps-idle.test.ts #9556

Closed opened this in answer to
Closed without merging

mason/forge:mason/9473-full-suite-red-test-apps-idle-test-ts → main 2 commits fork 3 threads · 3 unresolved

  • Closed without merging. Nothing was applied to main.

Review

Sign in to review this change.
1 file changed +5 −5
test/apps-idle.test.ts +5 −5
@@ -58,7 +58,7 @@ describe("previews of idle pulls sleep", () => {
5858 const envOf = (n: number): EnvStatus | undefined =>
5959 runtime.status(record).find((e) => e.env === `pull-${n}`);
6060
61 async function until<T>(read: () => T | undefined, ms = 60_000): Promise<T> {
61 async function until<T>(read: () => T | undefined, ms = 150_000): Promise<T> {
6262 const deadline = Date.now() + ms;
6363 while (Date.now() < deadline) {
6464 const value = read();
@@ -126,7 +126,7 @@ describe("previews of idle pulls sleep", () => {
126126 fresh = await pull("fresh");
127127 idle = await pull("idle");
128128 later = await pull("later");
129 }, 120_000);
129 }, 400_000);
130130
131131 afterAll(async () => {
132132 await runtime.stop();
@@ -188,7 +188,7 @@ describe("previews of idle pulls sleep", () => {
188188 expect(reader).not.toContain("Wake it");
189189 const quiet = await (await fetch(`${servers.url}/alice/hello/pulls/${fresh}`)).text();
190190 expect(quiet).not.toContain("nobody pushed or commented since");
191 }, 120_000);
191 }, 400_000);
192192
193193 test("asking for a stopped preview redeploys it on the ordinary path", async () => {
194194 // Invariant: a request for a dormant preview runs one "wake" deploy, and the woken preview counts as touched.
@@ -207,7 +207,7 @@ describe("previews of idle pulls sleep", () => {
207207 // Woken, it counts as touched: the next sweep leaves it up.
208208 await sweeps(2);
209209 expect(envOf(idle)?.state).toBe("running");
210 }, 120_000);
210 }, 400_000);
211211
212212 test("a restart leaves a sleeping preview asleep", async () => {
213213 // Invariant: a runtime booting over a dormant preview keeps it stopped and deploys nothing for it.
@@ -226,5 +226,5 @@ describe("previews of idle pulls sleep", () => {
226226 (r) => r.env === `pull-${later}`,
227227 ).length;
228228 expect(after).toBe(before);
229 }, 120_000);
229 }, 400_000);
230230 });

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs