test: Fix new name too long for cli/rename (#5462)

This commit is contained in:
Mathias Fredriksson 2022-12-19 13:58:22 +02:00 committed by GitHub
parent e61234f260
commit 5a786edc3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -27,7 +27,9 @@ func TestRename(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
defer cancel()
want := workspace.Name + "-test"
// Only append one letter because it's easy to exceed maximum length:
// E.g. "compassionate-chandrasekhar82" + "t".
want := workspace.Name + "t"
cmd, root := clitest.New(t, "rename", workspace.Name, want, "--yes")
clitest.SetupConfig(t, client, root)
pty := ptytest.New(t)