Skip to content

Commit 427afe1

Browse files
authored
fix: generate new random username to prevent flake (#11501)
1 parent 220e95d commit 427afe1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cli/rename_test.go

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

30-
// Only append one letter because it's easy to exceed maximum length:
31-
// E.g. "compassionate-chandrasekhar82" + "t".
32-
want := workspace.Name + "t"
30+
want := coderdtest.RandomUsername(t)
3331
inv, root := clitest.New(t, "rename", workspace.Name, want, "--yes")
3432
clitest.SetupConfig(t, member, root)
3533
pty := ptytest.New(t)

0 commit comments

Comments
 (0)