test: Fix generated workspace name length (#7228)

This commit is contained in:
Mathias Fredriksson
2023-04-20 18:40:36 +00:00
committed by GitHub
parent d8eda97dbe
commit ad0070354f
2 changed files with 9 additions and 1 deletions
+3
View File
@@ -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,
})