mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
test: Fix generated workspace name length (#7228)
This commit is contained in:
@@ -106,6 +106,9 @@ func TestWorkspace(t *testing.T) {
|
||||
defer cancel()
|
||||
|
||||
want := ws1.Name + "-test"
|
||||
if len(want) > 32 {
|
||||
want = want[:32-5] + "-test"
|
||||
}
|
||||
err := client.UpdateWorkspace(ctx, ws1.ID, codersdk.UpdateWorkspaceRequest{
|
||||
Name: want,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user