Fix race conditions in brokertest.py and cluster_tests.py.

1 file changed