From 3bbb35cea60b30038ee5a61798837d8639566cd6 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Thu, 23 May 2024 11:41:09 +0400 Subject: [PATCH] Revert "[PyOV] Reenable test_cancel" (#24639) Reverts openvinotoolkit/openvino#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 --- .../python/tests/test_runtime/test_async_infer_request.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bindings/python/tests/test_runtime/test_async_infer_request.py b/src/bindings/python/tests/test_runtime/test_async_infer_request.py index b7a7998b27603b..ea1bf1a9f2a4af 100644 --- a/src/bindings/python/tests/test_runtime/test_async_infer_request.py +++ b/src/bindings/python/tests/test_runtime/test_async_infer_request.py @@ -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() @@ -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])