diff --git a/src/inference/tests/functional/ov_register_plugin_test.cpp b/src/inference/tests/functional/ov_register_plugin_test.cpp index a3830743efb919..c494eb14e4d9a0 100644 --- a/src/inference/tests/functional/ov_register_plugin_test.cpp +++ b/src/inference/tests/functional/ov_register_plugin_test.cpp @@ -52,7 +52,9 @@ TEST(RegisterPluginTests, getVersionforRegisteredPluginThrows) { TEST(RegisterPluginTests, getVersionforNoRegisteredPluginNoThrows) { ov::Core core; - ASSERT_NO_THROW(core.get_versions("unkown_device")); + std::map versions; + ASSERT_NO_THROW(versions = core.get_versions("unkown_device")); + ASSERT_TRUE(versions.empty()); auto plugin = std::make_shared>();