Fix race condition in tests that caused a deadlock
Fix race condition in tests that caused a deadlock

- See commit 0a0b4054ef0c0b212ec77bba380c2d7ecbea61b4 for more details

[#150059907]

cloudfoundry-incubator/executor