From 539d6b0f3b198a31d81058342908a635f4cb97d9 Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Wed, 27 Mar 2024 18:25:42 +0200 Subject: [PATCH] test(coderd): fix template name too long in TestPatchTemplateMeta (#12781) --- coderd/templates_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coderd/templates_test.go b/coderd/templates_test.go index f0d6bf1433..485b39a31d 100644 --- a/coderd/templates_test.go +++ b/coderd/templates_test.go @@ -617,7 +617,7 @@ func TestPatchTemplateMeta(t *testing.T) { // Ensure the same value port share level is a no-op level = codersdk.WorkspaceAgentPortShareLevelOwner _, err = client.UpdateTemplateMeta(ctx, template.ID, codersdk.UpdateTemplateMeta{ - Name: template.Name + "2", + Name: coderdtest.RandomUsername(t), MaxPortShareLevel: &level, }) require.NoError(t, err)