Skip to content

Commit 0744522

Browse files
authored
test: increase tolerance for incomplete execute job result retreival (#134)
1 parent 8e80220 commit 0744522

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

integration/test_jobs.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from collections import Counter
44
from datetime import datetime
5+
from time import sleep
56

67
import pandas as pd
78
import pytest
@@ -273,6 +274,13 @@ def test_get_results_for_incomplete_execute(
273274

274275
incomplete_results = qnx.jobs.results(execute_job_ref, allow_incomplete=True)
275276

277+
# wait for the ZZPhase circuit execution to complete
278+
for _ in range(10):
279+
incomplete_results = qnx.jobs.results(execute_job_ref, allow_incomplete=True)
280+
if len(incomplete_results) > 0:
281+
break
282+
sleep(10)
283+
276284
# we expect the CX circuit to fail on H1-1LE, but the ZZPhase circuit should succeed
277285
assert len(incomplete_results) == 1
278286

0 commit comments

Comments
 (0)