Skip to content

Commit

Permalink
FailedAsyncInferWithNegativeTimeForWait
Browse files Browse the repository at this point in the history
  • Loading branch information
panhaiqi committed Nov 24, 2023
1 parent 69e1926 commit 3b67801
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ TEST_P(OVInferRequestWaitTests, throwExceptionOnGetTensorAfterAsyncInfer) {
OV_ASSERT_NO_THROW(req.wait());
}

TEST_P(OVInferRequestWaitTests, FailedAsyncInferWithNegativeTimeForWait) {
OV_ASSERT_NO_THROW(req.infer());
OV_ASSERT_NO_THROW(req.start_async());
ASSERT_THROW(req.wait_for(std::chrono::milliseconds{-1}), ov::Exception);
}

} // namespace behavior
} // namespace test
} // namespace ov

0 comments on commit 3b67801

Please sign in to comment.