mirror of
https://github.com/coder/coder.git
synced 2026-09-21 20:51:01 +08:00
test: Fix new name too long for cli/rename (#5462)
This commit is contained in:
+3
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user