/collection/delete-sync is racy
@epm
Submitted by Emilio Pozuelo Monfort Assigned to libsecret maintainer(s)
Link to original bug (#779041)
Description
Hi,
/collection/delete_sync sometimes fails with:
** Message: Remote error from secret service: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
** (test-collection:995): WARNING **: couldn't set SecretCollection Label: Message recipient disconnected from message bus without replying FAIL: test-collection 18 /collection/delete-sync
This only happens every so often when running the tests on a multicore machine, but it happens much more often (possibly 100% of the time) when running on a single cpu machine, or with:
taskset --cpu-list 0 ...
Adding a sleep(1); at the end of setup() and teardown() seems to make it work, so this is probably just a failure to properly wait for the bus to go up or down.