Skip to content

Commit 5a786ed

Browse files
authored
test: Fix new name too long for cli/rename (#5462)
1 parent e61234f commit 5a786ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cli/rename_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ func TestRename(t *testing.T) {
2727
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
2828
defer cancel()
2929

30-
want := workspace.Name + "-test"
30+
// Only append one letter because it's easy to exceed maximum length:
31+
// E.g. "compassionate-chandrasekhar82" + "t".
32+
want := workspace.Name + "t"
3133
cmd, root := clitest.New(t, "rename", workspace.Name, want, "--yes")
3234
clitest.SetupConfig(t, client, root)
3335
pty := ptytest.New(t)

0 commit comments

Comments
 (0)