Skip to content

Commit

Permalink
[PyOV] Reenable test_cancel (#24590)
Browse files Browse the repository at this point in the history
### Details:
 - Do not skip the test of `InferReuqest.cancel()`

### Tickets:
 - *CVS-95967*
  • Loading branch information
Jan Iwaszkiewicz authored May 20, 2024
1 parent 0eb8a42 commit 380e10e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@ 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 @@ -308,13 +307,13 @@ def test_cancel(device):
request.cancel()
with pytest.raises(RuntimeError) as e:
request.wait()
assert "[ INFER_CANCELLED ]" in str(e.value)
assert "Infer Request was canceled" in str(e.value)

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


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

0 comments on commit 380e10e

Please sign in to comment.