[pig] Avoid test hanging