Skip to content
Commit 2a47e312 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

Fix FakeAkonadiServer-based unit-tests deadlocking

This was caused by the thread management change in d9fb479d which
moved Connection to it's own QThread. As a result FakeAkonadiServer
calling FakeConnection::notificationCollector() caused m_backend
to be initialized to caller-thread DataStore instead of Connection-
thread DataStore.

As a result methods using Connection::dataStore() and DataStore::self()
got a different QSqlDatabase, causing transaction deadlock.
parent 8c66ffeb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment