[misc] Attempt to fix flickering tests in platform.