Skip to content

Commit 66e73db

Browse files
authored
fix: bound DevWorkspace deletion timeout (#24015)
1 parent 1babfeb commit 66e73db

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎tests/e2e/utils/KubernetesCommandLineToolsExecutor.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ export class KubernetesCommandLineToolsExecutor implements IKubernetesCommandLin
148148
this.shellExecutor.executeCommand(
149149
`${this.kubernetesCommandLineTool} patch dw ${this.workspaceName} -n ${this.namespace} -p '{ "metadata": { "finalizers": null }}' --type merge || true`
150150
);
151-
this.shellExecutor.executeCommand(`${this.kubernetesCommandLineTool} delete dw ${this.workspaceName} -n ${this.namespace} || true`);
151+
this.shellExecutor.executeCommand(
152+
`${this.kubernetesCommandLineTool} delete dw ${this.workspaceName} -n ${this.namespace} --timeout=2m || true`
153+
);
152154

153155
let dwtName: string;
154156
if (devfileName === undefined) {

0 commit comments

Comments
 (0)