You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Faker instance can't be used by different goroutines in parallel tests (t.Parallel()), there is a data race.
I propose to make it thread-safe, since creating new instance in every test is a waste of resources.
Alternatively, explicitly document that it's not thread-safe.
The text was updated successfully, but these errors were encountered:
Faker instance can't be used by different goroutines in parallel tests (
t.Parallel()
), there is a data race.I propose to make it thread-safe, since creating new instance in every test is a waste of resources.
Alternatively, explicitly document that it's not thread-safe.
The text was updated successfully, but these errors were encountered: