diff --git a/src/tests/functional/plugin/shared/src/behavior/ov_plugin/properties_tests.cpp b/src/tests/functional/plugin/shared/src/behavior/ov_plugin/properties_tests.cpp index 6bb177b77cc..34cdd1757b2 100644 --- a/src/tests/functional/plugin/shared/src/behavior/ov_plugin/properties_tests.cpp +++ b/src/tests/functional/plugin/shared/src/behavior/ov_plugin/properties_tests.cpp @@ -417,8 +417,12 @@ TEST_P(OVCheckChangePropComplieModleGetPropTests_InferencePrecision, ChangeCorre core->compile_model(model, target_device, compileModelProperties); } catch (const Exception& ex) { std::string err_msg(ex.what()); - ASSERT_TRUE(err_msg.find("Unsupported precision") != std::string::npos) << - "Fail to set and compile_model with precision: " << type << std::endl; + ASSERT_TRUE(err_msg.find("Wrong value") != std::string::npos || + err_msg.find("Unsupported precision") != std::string::npos) << + "Error message is unclear. The err msg:" << err_msg << std::endl; + ASSERT_TRUE(err_msg.find("Supported values") != std::string::npos) << + "The error message doesn't provide info about supported precicions." << + "The err msg: " << err_msg << std::endl; continue; }