Skip to content

Commit 24332f4

Browse files
committed
fix: update test to account for dbmem and check for returned member
1 parent 73e356c commit 24332f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/database/dbauthz/dbauthz_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -996,10 +996,10 @@ func (s *MethodTestSuite) TestOrganization() {
996996

997997
check.Args(database.PaginatedOrganizationMembersParams{
998998
OrganizationID: o.ID,
999-
LimitOpt: 1,
999+
LimitOpt: 0,
10001000
}).Asserts(
10011001
rbac.ResourceOrganizationMember.InOrg(o.ID), policy.ActionRead,
1002-
)
1002+
).Returns(mem)
10031003
}))
10041004
s.Run("UpdateMemberRoles", s.Subtest(func(db database.Store, check *expects) {
10051005
o := dbgen.Organization(s.T(), db, database.Organization{})

0 commit comments

Comments
 (0)