chore(site): increase stop workspace timeout (#10742)

This commit is contained in:
Bruno Quaresma
2023-11-16 18:27:51 -03:00
committed by GitHub
parent 111ac3de8a
commit 88c1ee6d52
2 changed files with 5 additions and 2 deletions

View File

@ -16,7 +16,7 @@ import {
RichParameter,
} from "./provisionerGenerated";
import { prometheusPort, pprofPort } from "./constants";
import { port } from "./playwright.config";
import { port, TEST_TIMEOUT } from "./playwright.config";
import * as ssh from "ssh2";
import { Duplex } from "stream";
import { WorkspaceBuildParameter } from "api/typesGenerated";
@ -197,6 +197,7 @@ export const stopWorkspace = async (page: Page, workspaceName: string) => {
"span[data-testid='build-status'] >> text=Stopped",
{
state: "visible",
timeout: TEST_TIMEOUT * 2,
},
);
};

View File

@ -12,6 +12,8 @@ const coderMain = path.join(__dirname, "../../enterprise/cmd/coder");
export const STORAGE_STATE = path.join(__dirname, ".auth.json");
export const TEST_TIMEOUT = 60_000;
const localURL = (port: number, path: string): string => {
return `http://localhost:${port}${path}`;
};
@ -29,7 +31,7 @@ export default defineConfig({
use: {
storageState: STORAGE_STATE,
},
timeout: 60000,
timeout: TEST_TIMEOUT,
},
],
reporter: [["./reporter.ts"]],