In the Asp.Net core project, there are several unit tests used services for connecting to the database and bring real data, so multiple concurrent connections are created. When these tests run, I received 'A second operation started on this context before a previous operation completed. Any instance members are not guaranteed to be thread safe.' error, but I do not know how can I fix this error without using async ways.
Aucun commentaire:
Enregistrer un commentaire