File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -604,7 +604,10 @@ func TestWorkspaceQuotas(t *testing.T) {
604
604
db2sdk .List ([]database.OrganizationMember {memOne , memTwo }, orgMemberIDs ))
605
605
606
606
// Check the quota is correct.
607
- allowance , err := db .GetQuotaAllowanceForUser (ctx , one .ID )
607
+ allowance , err := db .GetQuotaAllowanceForUser (ctx , database.GetQuotaAllowanceForUserParams {
608
+ UserID : one .ID ,
609
+ OrganizationID : org .ID ,
610
+ })
608
611
require .NoError (t , err )
609
612
require .Equal (t , int64 (50 ), allowance )
610
613
@@ -617,7 +620,10 @@ func TestWorkspaceQuotas(t *testing.T) {
617
620
require .NoError (t , err )
618
621
619
622
// Ensure allowance remains the same
620
- allowance , err = db .GetQuotaAllowanceForUser (ctx , one .ID )
623
+ allowance , err = db .GetQuotaAllowanceForUser (ctx , database.GetQuotaAllowanceForUserParams {
624
+ UserID : one .ID ,
625
+ OrganizationID : org .ID ,
626
+ })
621
627
require .NoError (t , err )
622
628
require .Equal (t , int64 (50 ), allowance )
623
629
})
You can’t perform that action at this time.
0 commit comments