Sleep before unlinking to fix a flaky test on windows