File tree 2 files changed +6
-6
lines changed 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ func (e NotAuthorizedError) Error() string {
35
35
36
36
// Unwrap will always unwrap to a sql.ErrNoRows so the API returns a 404.
37
37
// So 'errors.Is(err, sql.ErrNoRows)' will always be true.
38
- func (e NotAuthorizedError ) Unwrap () error {
38
+ func (NotAuthorizedError ) Unwrap () error {
39
39
return sql .ErrNoRows
40
40
}
41
41
Original file line number Diff line number Diff line change @@ -258,18 +258,18 @@ func asserts(inputs ...any) []AssertRBAC {
258
258
return out
259
259
}
260
260
261
- func (suite * MethodTestSuite ) TestExtraMethods () {
262
- suite .Run ("GetProvisionerDaemons" , func () {
263
- suite .RunMethodTest (func (t * testing.T , db database.Store ) MethodCase {
261
+ func (s * MethodTestSuite ) TestExtraMethods () {
262
+ s .Run ("GetProvisionerDaemons" , func () {
263
+ s .RunMethodTest (func (t * testing.T , db database.Store ) MethodCase {
264
264
d , err := db .InsertProvisionerDaemon (context .Background (), database.InsertProvisionerDaemonParams {
265
265
ID : uuid .New (),
266
266
})
267
267
require .NoError (t , err , "insert provisioner daemon" )
268
268
return methodCase (inputs (), asserts (d , rbac .ActionRead ))
269
269
})
270
270
})
271
- suite .Run ("GetDeploymentDAUs" , func () {
272
- suite .RunMethodTest (func (t * testing.T , db database.Store ) MethodCase {
271
+ s .Run ("GetDeploymentDAUs" , func () {
272
+ s .RunMethodTest (func (t * testing.T , db database.Store ) MethodCase {
273
273
return methodCase (inputs (), asserts (rbac .ResourceUser .All (), rbac .ActionRead ))
274
274
})
275
275
})
You can’t perform that action at this time.
0 commit comments