[RFC] Wait for child threads to finish in SmartTCPServer_for_testing.tearDown

Andrew Bennetts andrew at canonical.com
Thu Jul 10 23:59:08 BST 2008


Hi,

This patch isn't really ready for merging yet, but I thought it may be of some
interest to anyone that wants to reduce the number of tests that leak threads.
This patch, if you uncomment the two commented out lines, will wait for all
child threads of SmartTCPServer_for_testing to stop when you call its tearDown.
Currently this causes the test suite to hang on every test that doesn't call
.disconnect on a smart client transport/medium, which is why it isn't yet ready
to merge.

-Andrew.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-threads-3517.2.17.patch
Type: text/x-diff
Size: 756 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080711/3229a87d/attachment.bin 


More information about the bazaar mailing list