Skip to content

Commit 6644e95

Browse files
authored
fix: Scope error to test functions to fix TestFeaturesService race (#3765)
Fixes #3747.
1 parent 02c0100 commit 6644e95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

enterprise/coderd/features_internal_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func TestFeaturesService_EntitlementsAPI(t *testing.T) {
8686
auditLogs: entitlement{entitled},
8787
},
8888
}
89-
_, err = db.InsertUser(ctx, database.InsertUserParams{
89+
_, err := db.InsertUser(ctx, database.InsertUserParams{
9090
ID: uuid.UUID{},
9191
Email: "",
9292
Username: "",
@@ -136,7 +136,7 @@ func TestFeaturesService_EntitlementsAPI(t *testing.T) {
136136
},
137137
}
138138
for i := byte(0); i < 5; i++ {
139-
_, err = db.InsertUser(ctx, database.InsertUserParams{
139+
_, err := db.InsertUser(ctx, database.InsertUserParams{
140140
ID: uuid.UUID{i},
141141
Email: "",
142142
Username: "",

0 commit comments

Comments
 (0)