brooklyncentral/brooklyn — pull request #384 by aledsage (2012-11-14 11:00:18+00:00)
Title: Fixes failing rebind tests

- RebindManager.waitForPendingComplete was not waiting
properly; it was waiting for a write to complete,
rather than for the *next* write to complete. So it
could return before the calling thread's writes had
been done.
- Adds a timeout to waitForPendingComplete and
waitForWritesCompleted.

Note: for applying the timeout to compound commands, I
haven't bothered decrementing the remaining time or
executing the waits in parallel. But given this is just
used to prevent a test hanging forever, I believe this is
"good enough".