From 67fef297da32005afa624101a1c6c0afad0d5323 Mon Sep 17 00:00:00 2001 From: Garrett Delfosse Date: Wed, 1 May 2024 15:43:26 -0400 Subject: [PATCH] increase test timeout --- github-upload-public-key/main.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/github-upload-public-key/main.test.ts b/github-upload-public-key/main.test.ts index b4e83a5..5c71464 100644 --- a/github-upload-public-key/main.test.ts +++ b/github-upload-public-key/main.test.ts @@ -24,10 +24,12 @@ describe("github-upload-public-key", async () => { let exec = await execContainer(id, ["bash", "-c", instance.script]); expect(exec.stdout).toContain("Coder public SSH key uploaded to GitHub!"); expect(exec.exitCode).toBe(0); - }); + // we need to increase timeout to pull the container + }, 10000); it("does nothing if one already exists", async () => { const { instance, id } = await setupContainer(); + // use keyword to make server return a existing key await writeCoder(id, "echo findkey"); let exec = await execContainer(id, ["bash", "-c", instance.script]); expect(exec.stdout).toContain(