mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
committed by
GitHub
parent
5993f85ec9
commit
3557497ea4
@ -116,6 +116,8 @@ func TestWorkspace(t *testing.T) {
|
||||
if len(want) > 32 {
|
||||
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{
|
||||
Name: want,
|
||||
})
|
||||
|
Reference in New Issue
Block a user