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

Skip to content
Prev Previous commit
GetWorkspaceByOwnerIDAndName: add ret
  • Loading branch information
johnstcn committed Aug 27, 2025
commit 84dba2e95cb6dc6ce0ce9c4eebdd65eafe90db0d
2 changes: 1 addition & 1 deletion coderd/database/dbauthz/dbauthz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1857,7 +1857,7 @@ func (s *MethodTestSuite) TestWorkspace() {
Name: ws.Name,
}
dbm.EXPECT().GetWorkspaceByOwnerIDAndName(gomock.Any(), arg).Return(ws, nil).AnyTimes()
check.Args(arg).Asserts(ws, policy.ActionRead)
check.Args(arg).Asserts(ws, policy.ActionRead).Returns(ws)
}))
s.Run("GetWorkspaceResourceByID", s.Mocked(func(dbm *dbmock.MockStore, faker *gofakeit.Faker, check *expects) {
ws := testutil.Fake(s.T(), faker, database.Workspace{})
Expand Down
Loading