-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
StoreKitConfigTestCase
: improved waitForStoreKitTestIfNeeded
I did this in hopes that it would work around `FB11799675`, but alas it didn't. I still think it's a useful refactor. - Combined `hasWaited` and `waitLock` into a single `Atomic` - Replaced `Thread.sleep` with `Task.sleep` to avoid blocking the thread. This way if `StoreKitTestSession` needs to do anything on the main thread, it can since it's no longer blocked. - Moved call to `waitForStoreKitTestIfNeeded` _before_ finishing transactions. I did this in hopes that by the time we call that method, these transactions are gone.
- Loading branch information
Showing
3 changed files
with
28 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters