Hi Jordan,
Most likely this is a multi-threading issue. Are you using the main thread
to run your tasks?
Thanks,
Brendan
On Sunday, March 20, 2016 at 8:51:12 AM UTC-6, Jordan Wood wrote:
>
> I have a suite of unit tests based on the XCTestCase class, and a section
> of my tests test our use of Couchbase. When I run the entire suite, I see
> a lot of messages in the log which say:
>
> 2016-03-20 08:39:19.031 BrowZine[20654:775436] *** SQLITE database busy:
> <CBL_FMDatabase: 0x7f8376d3aa40>
>
> Then occasionally, after a bunch of the previous messages, I see this
> error:
>
> 08:39:19.032‖ WARNING: CBL_SQLiteStorage: database is unreadable (err 5)
>
> 2016-03-20 08:39:19:031 BrowZine[20654:5e0f] Could not open couchbase DB
> named 'ios_test_database', error = Error Domain=SQLite Code=5 "database is
> locked" UserInfo={NSLocalizedDescription=database is locked}
>
>
> The test fails after this. If I run the failing tests individually (not
> all together), the test passes. I currently know no problems in
> the normally running app which is triggering this issue, but it doesn't
> inspire confidence. What causes these errors, and is there anything I can
> do in my tests to make them behave more consistently?
>
>
> Thanks!
>
>
> Jordan
>
>
--
You received this message because you are subscribed to the Google Groups
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mobile-couchbase/c4511fa0-169c-4247-9fc3-5bc74e94783e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.