mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
perform(sync:) getting stuck #360
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @TheJustikar on GitHub (Feb 17, 2021).
Hi,
I am using this block to clear my data before adding my test data for unit and ui tests:
This gets called in the
setUp()method of 2 of my unit tests. The 1. one work fine, but the second one just gets stuck without an error, but the tests don't start.Am I doing anything wrong?
@JohnEstropia commented on GitHub (Feb 18, 2021):
Do you have your Unit Test project running in parallel?

@TheJustikar commented on GitHub (Feb 19, 2021):
No
@JohnEstropia commented on GitHub (Feb 19, 2021):
If so then it's likely you are mixing sync and async transactions. Make sure you don't have unfinished async transactions when running sync ones. You can inspect the stack trace when you hit a deadlock, that should show you which other transaction it's waiting for.
@TheJustikar commented on GitHub (Feb 19, 2021):
Thanks, yeah I missed some async-transactions in one of the tests and waiting for the fixed it