From 87ab6ae8a0b08f66e44f618cd44d23fc6a5c2be5 Mon Sep 17 00:00:00 2001 From: Colin Adler Date: Thu, 15 Sep 2022 15:03:29 -0500 Subject: [PATCH] fix: incorrect templates list test assert (#4079) --- cli/templatelist_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cli/templatelist_test.go b/cli/templatelist_test.go index f562d3f2b9..c113dc7e4f 100644 --- a/cli/templatelist_test.go +++ b/cli/templatelist_test.go @@ -49,7 +49,7 @@ func TestTemplateList(t *testing.T) { }) t.Run("NoTemplates", func(t *testing.T) { t.Parallel() - client := coderdtest.New(t, &coderdtest.Options{IncludeProvisionerDaemon: true}) + client := coderdtest.New(t, &coderdtest.Options{}) coderdtest.CreateFirstUser(t, client) cmd, root := clitest.New(t, "templates", "list") @@ -66,6 +66,8 @@ func TestTemplateList(t *testing.T) { require.NoError(t, <-errC) - pty.ExpectMatch("No templates found in testuser! Create one:") + pty.ExpectMatch("No templates found in") + pty.ExpectMatch(coderdtest.FirstUserParams.Username) + pty.ExpectMatch("Create one:") }) }