Wait for not pending, not for running.

When failures occur, we go to 'Terminated' which can cause indefinite blocking.

Hopefully this will deflake this test.