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;