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

Skip to content

Commit 84dba2e

Browse files
committed
GetWorkspaceByOwnerIDAndName: add ret
1 parent 43f2760 commit 84dba2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/database/dbauthz/dbauthz_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1857,7 +1857,7 @@ func (s *MethodTestSuite) TestWorkspace() {
18571857
Name: ws.Name,
18581858
}
18591859
dbm.EXPECT().GetWorkspaceByOwnerIDAndName(gomock.Any(), arg).Return(ws, nil).AnyTimes()
1860-
check.Args(arg).Asserts(ws, policy.ActionRead)
1860+
check.Args(arg).Asserts(ws, policy.ActionRead).Returns(ws)
18611861
}))
18621862
s.Run("GetWorkspaceResourceByID", s.Mocked(func(dbm *dbmock.MockStore, faker *gofakeit.Faker, check *expects) {
18631863
ws := testutil.Fake(s.T(), faker, database.Workspace{})

0 commit comments

Comments
 (0)