Skip to content

Commit

Permalink
[CAPI][TEST] fix ov_infer_request_test test error
Browse files Browse the repository at this point in the history
Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>
  • Loading branch information
zhaixuejun1993 committed Mar 14, 2024
1 parent 3986f55 commit f434e75
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/bindings/c/tests/ov_infer_request_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,7 @@ TEST_P(ov_infer_request_test, cancel) {
OV_ASSERT_OK(ov_infer_request_start_async(infer_request));
OV_EXPECT_OK(ov_infer_request_cancel(infer_request));
ov_status_e return_status = ov_infer_request_wait(infer_request);
if (return_status == ov_status_e::OK || return_status == ov_status_e::INFER_CANCELLED)
GTEST_SUCCEED();
else
if (return_status == ov_status_e::UNKNOW_EXCEPTION || return_status == ov_status_e::GENERAL_ERROR)
GTEST_FAIL();
}

Expand Down

0 comments on commit f434e75

Please sign in to comment.