Skip to content

Commit 88c1ee6

Browse files
chore(site): increase stop workspace timeout (coder#10742)
1 parent 111ac3d commit 88c1ee6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

site/e2e/helpers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
RichParameter,
1717
} from "./provisionerGenerated";
1818
import { prometheusPort, pprofPort } from "./constants";
19-
import { port } from "./playwright.config";
19+
import { port, TEST_TIMEOUT } from "./playwright.config";
2020
import * as ssh from "ssh2";
2121
import { Duplex } from "stream";
2222
import { WorkspaceBuildParameter } from "api/typesGenerated";
@@ -197,6 +197,7 @@ export const stopWorkspace = async (page: Page, workspaceName: string) => {
197197
"span[data-testid='build-status'] >> text=Stopped",
198198
{
199199
state: "visible",
200+
timeout: TEST_TIMEOUT * 2,
200201
},
201202
);
202203
};

site/e2e/playwright.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ const coderMain = path.join(__dirname, "../../enterprise/cmd/coder");
1212

1313
export const STORAGE_STATE = path.join(__dirname, ".auth.json");
1414

15+
export const TEST_TIMEOUT = 60_000;
16+
1517
const localURL = (port: number, path: string): string => {
1618
return `http://localhost:${port}${path}`;
1719
};
@@ -29,7 +31,7 @@ export default defineConfig({
2931
use: {
3032
storageState: STORAGE_STATE,
3133
},
32-
timeout: 60000,
34+
timeout: TEST_TIMEOUT,
3335
},
3436
],
3537
reporter: [["./reporter.ts"]],

0 commit comments

Comments
 (0)