Make the request cancellation tests a bit more resilient to failure.