Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 290d1a3

Browse files
committed
Test needs a username/email to not match empty string
1 parent 8d30f1e commit 290d1a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

coderd/httpmw/userparam_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ func TestUserParam(t *testing.T) {
3434
})
3535

3636
user, err := db.InsertUser(r.Context(), database.InsertUserParams{
37-
ID: uuid.New(),
37+
ID: uuid.New(),
38+
39+
Username: "admin",
3840
})
3941
require.NoError(t, err)
4042

0 commit comments

Comments
 (0)