Skip to content

Commit 4a162df

Browse files
committed
lint
1 parent 5e3f858 commit 4a162df

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

coderd/rbac/acl/updatevalidator_test.go

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,22 @@ package acl_test
33
import (
44
"testing"
55

6+
"github.com/google/uuid"
7+
"github.com/stretchr/testify/require"
8+
69
"github.com/coder/coder/v2/coderd"
710
"github.com/coder/coder/v2/coderd/database"
811
"github.com/coder/coder/v2/coderd/database/dbgen"
912
"github.com/coder/coder/v2/coderd/database/dbtestutil"
1013
"github.com/coder/coder/v2/coderd/rbac/acl"
1114
"github.com/coder/coder/v2/codersdk"
1215
"github.com/coder/coder/v2/testutil"
13-
"github.com/google/uuid"
14-
"github.com/stretchr/testify/require"
1516
)
1617

1718
func TestOK(t *testing.T) {
18-
db, _ := dbtestutil.NewDB(t, dbtestutil.WithTimezone("UTC"))
19+
t.Parallel()
20+
21+
db, _ := dbtestutil.NewDB(t)
1922
o := dbgen.Organization(t, db, database.Organization{})
2023
g := dbgen.Group(t, db, database.Group{OrganizationID: o.ID})
2124
u := dbgen.User(t, db, database.User{})
@@ -40,7 +43,9 @@ func TestOK(t *testing.T) {
4043
}
4144

4245
func TestDeniesUnknownIDs(t *testing.T) {
43-
db, _ := dbtestutil.NewDB(t, dbtestutil.WithTimezone("UTC"))
46+
t.Parallel()
47+
48+
db, _ := dbtestutil.NewDB(t)
4449
ctx := testutil.Context(t, testutil.WaitShort)
4550

4651
update := codersdk.UpdateWorkspaceACL{
@@ -60,7 +65,9 @@ func TestDeniesUnknownIDs(t *testing.T) {
6065
}
6166

6267
func TestDeniesUnknownRolesAndInvalidIDs(t *testing.T) {
63-
db, _ := dbtestutil.NewDB(t, dbtestutil.WithTimezone("UTC"))
68+
t.Parallel()
69+
70+
db, _ := dbtestutil.NewDB(t)
6471
ctx := testutil.Context(t, testutil.WaitShort)
6572

6673
update := codersdk.UpdateWorkspaceACL{

0 commit comments

Comments
 (0)