Skip to content

Commit 87ab6ae

Browse files
authored
fix: incorrect templates list test assert (#4079)
1 parent b8bd320 commit 87ab6ae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cli/templatelist_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func TestTemplateList(t *testing.T) {
4949
})
5050
t.Run("NoTemplates", func(t *testing.T) {
5151
t.Parallel()
52-
client := coderdtest.New(t, &coderdtest.Options{IncludeProvisionerDaemon: true})
52+
client := coderdtest.New(t, &coderdtest.Options{})
5353
coderdtest.CreateFirstUser(t, client)
5454

5555
cmd, root := clitest.New(t, "templates", "list")
@@ -66,6 +66,8 @@ func TestTemplateList(t *testing.T) {
6666

6767
require.NoError(t, <-errC)
6868

69-
pty.ExpectMatch("No templates found in testuser! Create one:")
69+
pty.ExpectMatch("No templates found in")
70+
pty.ExpectMatch(coderdtest.FirstUserParams.Username)
71+
pty.ExpectMatch("Create one:")
7072
})
7173
}

0 commit comments

Comments
 (0)