This test polls for result instead of sleeping.