Skip to content

Commit 685b21e

Browse files
committed
linting
1 parent 422e694 commit 685b21e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

coderd/database/dbfake/builder.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,25 +39,30 @@ type OrganizationResponse struct {
3939
}
4040

4141
func (b OrganizationBuilder) EveryoneAllowance(allowance int) OrganizationBuilder {
42+
//nolint: revive // returns modified struct
4243
b.allUsersAllowance = int32(allowance)
4344
return b
4445
}
4546

4647
func (b OrganizationBuilder) Seed(seed database.Organization) OrganizationBuilder {
48+
//nolint: revive // returns modified struct
4749
b.seed = seed
4850
return b
4951
}
5052

5153
func (b OrganizationBuilder) Members(users ...database.User) OrganizationBuilder {
5254
for _, u := range users {
55+
//nolint: revive // returns modified struct
5356
b.members = append(b.members, u.ID)
5457
}
5558
return b
5659
}
5760

5861
func (b OrganizationBuilder) Group(seed database.Group, members ...database.User) OrganizationBuilder {
62+
//nolint: revive // returns modified struct
5963
b.groups[seed] = []uuid.UUID{}
6064
for _, u := range members {
65+
//nolint: revive // returns modified struct
6166
b.groups[seed] = append(b.groups[seed], u.ID)
6267
}
6368
return b

enterprise/coderd/workspacequota_test.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ func verifyQuota(ctx context.Context, t *testing.T, client *codersdk.Client, org
6060
func TestWorkspaceQuota(t *testing.T) {
6161
t.Parallel()
6262

63-
if !dbtestutil.WillUsePostgres() {
64-
t.Fatal("We should only run this test with postgres")
65-
}
66-
6763
// This first test verifies the behavior of creating and deleting workspaces.
6864
// It also tests multi-group quota stacking and the everyone group.
6965
t.Run("CreateDelete", func(t *testing.T) {
@@ -306,7 +302,7 @@ func TestWorkspaceQuota(t *testing.T) {
306302
})
307303
}
308304

309-
// nolint:paralleltest // Tests must run serially
305+
// nolint:paralleltest,tparallel // Tests must run serially
310306
func TestWorkspaceSerialization(t *testing.T) {
311307
t.Parallel()
312308

@@ -391,7 +387,6 @@ func TestWorkspaceSerialization(t *testing.T) {
391387
Isolation: sql.LevelSerializable,
392388
})
393389
assert.NoError(t, err)
394-
395390
}
396391

397392
// Start TX

0 commit comments

Comments
 (0)