Qiskit/qiskit-ibm-runtime

race condition in list pending jobs integration test

Closed this issue · 0 comments

job.status() in ["QUEUED", "RUNNING", JobStatus.QUEUED, JobStatus.RUNNING]

the test that checks that the pending filter works properly is failing because jobs that are pending at time of listing jobs are completing before the assertion on the status is made (and obtaining the status make an API request).

We should make the assertions based on the status received from the list jobs request.