Skip to content

fix(site): prevent overwriting of newest workspace data during optimistic updates #10751

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove TEST_TIMEOUT
  • Loading branch information
BrunoQuaresma committed Nov 17, 2023
commit dcab5d70e04074c631f92010d341aa3a01706d2e
3 changes: 1 addition & 2 deletions site/e2e/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
RichParameter,
} from "./provisionerGenerated";
import { prometheusPort, pprofPort } from "./constants";
import { port, TEST_TIMEOUT } from "./playwright.config";
import { port } from "./playwright.config";
import * as ssh from "ssh2";
import { Duplex } from "stream";
import { WorkspaceBuildParameter } from "api/typesGenerated";
Expand Down Expand Up @@ -197,7 +197,6 @@ export const stopWorkspace = async (page: Page, workspaceName: string) => {
"span[data-testid='build-status'] >> text=Stopped",
{
state: "visible",
timeout: TEST_TIMEOUT * 2,
},
);
};
Expand Down
4 changes: 1 addition & 3 deletions site/e2e/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ 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}`;
};
Expand All @@ -31,7 +29,7 @@ export default defineConfig({
use: {
storageState: STORAGE_STATE,
},
timeout: TEST_TIMEOUT,
timeout: 60_000,
},
],
reporter: [["./reporter.ts"]],
Expand Down