mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
committed by
GitHub
parent
5993f85ec9
commit
3557497ea4
@ -116,6 +116,8 @@ func TestWorkspace(t *testing.T) {
|
|||||||
if len(want) > 32 {
|
if len(want) > 32 {
|
||||||
want = want[:32-5] + "-test"
|
want = want[:32-5] + "-test"
|
||||||
}
|
}
|
||||||
|
// Sometimes truncated names result in `--test` which is not an allowed name.
|
||||||
|
want = strings.Replace(want, "--", "-", -1)
|
||||||
err := client.UpdateWorkspace(ctx, ws1.ID, codersdk.UpdateWorkspaceRequest{
|
err := client.UpdateWorkspace(ctx, ws1.ID, codersdk.UpdateWorkspaceRequest{
|
||||||
Name: want,
|
Name: want,
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user