mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
feat(testutil): add GetRandomNameHyphenated (#17342)
This started coming up more often for me, so time for a test helper! --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@ -534,7 +534,7 @@ func TestTemplatePush(t *testing.T) {
|
||||
"test_name": tt.name,
|
||||
}))
|
||||
|
||||
templateName := strings.ReplaceAll(testutil.GetRandomName(t), "_", "-")
|
||||
templateName := testutil.GetRandomNameHyphenated(t)
|
||||
|
||||
inv, root := clitest.New(t, "templates", "push", templateName, "-d", tempDir, "--yes")
|
||||
clitest.SetupConfig(t, templateAdmin, root)
|
||||
|
Reference in New Issue
Block a user