cleanUp does not wait until daemon is actually dead

Bug #1222711 reported by Stuart Bishop
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
txfixtures
Fix Released
High
Colin Watson

Bug Description

The TacTestFixture's killTac method does not wait until the daemon is really dead. This can cause tests to fail intermittently, where operations succeed that are supposed to be failing.

My work around:

    def shutdown(self):
        self.cleanUp()
        while self._hasDaemonStarted():
            time.sleep(0.1)

Revision history for this message
Colin Watson (cjwatson) wrote :

Fixed in txfixtures 0.4.3 (https://github.com/testing-cabal/txfixtures/pull/13), and I've removed the workaround from Launchpad as well (https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/379456).

Changed in txfixtures:
assignee: nobody → Colin Watson (cjwatson)
importance: Undecided → High
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.