Skip to content

Commit

Permalink
optimize number of get_versions() calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
awayzjj authored and vurusovs committed Mar 14, 2024
1 parent 46035d7 commit a6b862d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/inference/tests/functional/ov_register_plugin_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ TEST(RegisterPluginTests, getVersionforRegisteredPluginThrows) {

TEST(RegisterPluginTests, getVersionforNoRegisteredPluginNoThrows) {
ov::Core core;
ASSERT_NO_THROW(core.get_versions("unkown_device"));
std::map<std::string, ov::Version> versions = core.get_versions("unkown_device");
std::map<std::string, ov::Version> versions;
ASSERT_NO_THROW(versions = core.get_versions("unkown_device"));
ASSERT_TRUE(versions.empty());

auto plugin = std::make_shared<NiceMock<ov::MockIPlugin>>();
Expand Down

0 comments on commit a6b862d

Please sign in to comment.