mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: Scope error to test functions to fix TestFeaturesService race (#3765)
Fixes #3747.
This commit is contained in:
@@ -86,7 +86,7 @@ func TestFeaturesService_EntitlementsAPI(t *testing.T) {
|
||||
auditLogs: entitlement{entitled},
|
||||
},
|
||||
}
|
||||
_, err = db.InsertUser(ctx, database.InsertUserParams{
|
||||
_, err := db.InsertUser(ctx, database.InsertUserParams{
|
||||
ID: uuid.UUID{},
|
||||
Email: "",
|
||||
Username: "",
|
||||
@@ -136,7 +136,7 @@ func TestFeaturesService_EntitlementsAPI(t *testing.T) {
|
||||
},
|
||||
}
|
||||
for i := byte(0); i < 5; i++ {
|
||||
_, err = db.InsertUser(ctx, database.InsertUserParams{
|
||||
_, err := db.InsertUser(ctx, database.InsertUserParams{
|
||||
ID: uuid.UUID{i},
|
||||
Email: "",
|
||||
Username: "",
|
||||
|
||||
Reference in New Issue
Block a user