This testcase still has a race condition but I believe it is when the test does not complete quickly enough.