Mercurial > bitten > bitten-test
changeset 698:86e946ced5a0
Separate thread start times slightly to avoid odd errors (not ideal but it avoids this test failing for reasons unrelated to what it's testing).
author | hodgestar |
---|---|
date | Fri, 25 Sep 2009 22:55:52 +0000 |
parents | a51af1f06e46 |
children | 80e186d15d8e |
files | bitten/tests/queue.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bitten/tests/queue.py +++ b/bitten/tests/queue.py @@ -291,7 +291,9 @@ thread1 = threading.Thread(target=build_populator) thread2 = threading.Thread(target=build_populator) - thread1.start(); thread2.start() + # tiny sleep is to avoid odd segementation faults + # (on Linux) and bus errors (on Mac OS X) + thread1.start(); time.sleep(0.01); thread2.start() thread1.join(); thread2.join() # check builds got added