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

Skip to content

Commit 1dfa287

Browse files
committed
Fix license uuid in merge
1 parent 99fa810 commit 1dfa287

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

coderd/database/dbauthz/querier_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ func (s *MethodTestSuite) TestProvsionerJob() {
280280
func (s *MethodTestSuite) TestLicense() {
281281
s.Run("GetLicenses", s.Subtest(func(db database.Store, check *expects) {
282282
l, err := db.InsertLicense(context.Background(), database.InsertLicenseParams{
283-
Uuid: uuid.NullUUID{UUID: uuid.New(), Valid: true},
283+
UUID: uuid.New(),
284284
})
285285
require.NoError(s.T(), err)
286286
check.Args().Asserts(l, rbac.ActionRead).
@@ -298,14 +298,14 @@ func (s *MethodTestSuite) TestLicense() {
298298
}))
299299
s.Run("GetLicenseByID", s.Subtest(func(db database.Store, check *expects) {
300300
l, err := db.InsertLicense(context.Background(), database.InsertLicenseParams{
301-
Uuid: uuid.NullUUID{UUID: uuid.New(), Valid: true},
301+
UUID: uuid.New(),
302302
})
303303
require.NoError(s.T(), err)
304304
check.Args(l.ID).Asserts(l, rbac.ActionRead).Returns(l)
305305
}))
306306
s.Run("DeleteLicense", s.Subtest(func(db database.Store, check *expects) {
307307
l, err := db.InsertLicense(context.Background(), database.InsertLicenseParams{
308-
Uuid: uuid.NullUUID{UUID: uuid.New(), Valid: true},
308+
UUID: uuid.New(),
309309
})
310310
require.NoError(s.T(), err)
311311
check.Args(l.ID).Asserts(l, rbac.ActionDelete)

coderd/database/queries.sql.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)