Skip to content

Commit 3557497

Browse files
authored
test(coderd): fix workspace rename test (#9402)
Fixes #9400
1 parent 5993f85 commit 3557497

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

coderd/workspaces_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ func TestWorkspace(t *testing.T) {
116116
if len(want) > 32 {
117117
want = want[:32-5] + "-test"
118118
}
119+
// Sometimes truncated names result in `--test` which is not an allowed name.
120+
want = strings.Replace(want, "--", "-", -1)
119121
err := client.UpdateWorkspace(ctx, ws1.ID, codersdk.UpdateWorkspaceRequest{
120122
Name: want,
121123
})

0 commit comments

Comments
 (0)