-
Notifications
You must be signed in to change notification settings - Fork 715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
success (and error) callbacks from database.close are never called #109
Comments
Would love a unit test and a fix for the Java code. :) Should be a one-liner for Android at least. |
Ok - will do. |
…ng openDatabase()/db.close()/deleteDatabase() callbacks; double db.executeSql() callbacks; deleteDatabase() not reliable); small changes to deleteAndConfirmDeleted() helper function for existing test of sqlitePlugin.deleteDatabase()
After applying the changes to |
Thanks. On 21 August 2014 01:13, Chris Brody notifications@github.com wrote:
|
Now fixed in |
in unit tests for our application we close, delete and then re-open the database before each test. As coded the actual database close is performed asynchronously but the confirmation callback is never called making database swapout unreliable.
Worse, in the android implementation this together with #112 mean that when a subsequent openDatabase() call is made for the same name, a new thread is started which can overlap with the old thread for the same database.
The text was updated successfully, but these errors were encountered: