For the record, I've found the cause of the issue I wrote about in comment 4: the Accounts::Manager object was not being deleted at the end of the test. Given that the D-Bus connection was being torn down, there probably was some GLib event about that left in the mainloop, which was processed only when the next startServices() was called. Deleting the Accounts::Manager fixed the problem.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1603706 Title: Possible races in tst_daemon tests. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/online-accounts-api/+bug/1603706/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs