fix: generate new random username to prevent flake (#11501)

This commit is contained in:
Garrett Delfosse 2024-01-08 14:09:14 -05:00 committed by GitHub
parent 220e95dd5c
commit 427afe13e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

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