From eca61e6508a8fe22b1957df0c67c602ba11c0843 Mon Sep 17 00:00:00 2001 From: Zachary Whaley Date: Thu, 18 Jul 2024 08:06:12 -0500 Subject: [PATCH] chore: test update (followup #63) (#64) --- __tests__/wait.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/__tests__/wait.test.ts b/__tests__/wait.test.ts index 8428f5f..f8150a4 100644 --- a/__tests__/wait.test.ts +++ b/__tests__/wait.test.ts @@ -201,7 +201,7 @@ describe("wait", () => { ); }); - it("will wait for both in_progress and queued runs", async () => { + it("will wait for in_progress, queued, and waiting runs", async () => { const existingRuns = [ { id: 1, @@ -213,6 +213,11 @@ describe("wait", () => { status: "queued", html_url: "2", }, + { + id: 3, + status: "waiting", + html_url: "3", + }, ]; // Give the current run an id that makes it the last in the queue. input.runId = existingRuns.length + 1;