Skip to content

Commit

Permalink
Revert "[PyOV] Reenable test_cancel" (#24639)
Browse files Browse the repository at this point in the history
Reverts #24590

Sporadically fails
https://github.com/openvinotoolkit/openvino/actions/runs/9189693102/job/25273009310

Looks like tests relies on certain execution time of model inference,
while it depends on machine
  • Loading branch information
ilya-lavrenov authored May 23, 2024
1 parent 23d487b commit 3bbb35c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ def __array__(self):
infer_queue_list[i].get_output_tensor().data, np.abs(input_data))


@pytest.mark.skip(reason="Sporadically failed. Need further investigation. Ticket - 95967")
def test_cancel(device):
core = Core()
model = get_relu_model()
Expand All @@ -307,13 +308,13 @@ def test_cancel(device):
request.cancel()
with pytest.raises(RuntimeError) as e:
request.wait()
assert "Infer Request was canceled" in str(e.value)
assert "[ INFER_CANCELLED ]" in str(e.value)

request.start_async({"data": img})
request.cancel()
with pytest.raises(RuntimeError) as e:
request.wait_for(1)
assert "Infer Request was canceled" in str(e.value)
assert "[ INFER_CANCELLED ]" in str(e.value)


@pytest.mark.parametrize("share_inputs", [True, False])
Expand Down

0 comments on commit 3bbb35c

Please sign in to comment.