Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit685b21e

Browse files
committed
linting
1 parent422e694 commit685b21e

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 (bOrganizationBuilder)EveryoneAllowance(allowanceint)OrganizationBuilder {
42+
//nolint: revive // returns modified struct
4243
b.allUsersAllowance=int32(allowance)
4344
returnb
4445
}
4546

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

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

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

‎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
funcTestWorkspaceQuota(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
funcTestWorkspaceSerialization(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)

[8]ページ先頭

©2009-2025 Movatter.jp