fix: Scope error to test functions to fix TestFeaturesService race (#3765)

Fixes #3747.
This commit is contained in:
Kyle Carberry
2022-08-30 19:17:57 -05:00
committed by GitHub
parent 02c0100d4d
commit 6644e951d8
+2 -2
View File
@@ -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: "",