Browse Source

Update error report.

tags/v1.3.0
zhaozhixuan 3 years ago
parent
commit
03b9afcee9
1 changed files with 10 additions and 10 deletions
  1. +10
    -10
      tests/ut/ge/graph/manager/graph_manager_unittest.cc

+ 10
- 10
tests/ut/ge/graph/manager/graph_manager_unittest.cc View File

@@ -194,16 +194,16 @@ TEST_F(UtestGraphManagerTest, test_add_graph_3) {
std::map<std::string, std::string> options;
OmgContext context;

// std::future<Status> fut1 = std::async(std::launch::async,
// &GraphManager::AddGraph, &graph_manager, graph_id, graph, options, context);
// std::future<Status> fut2 = std::async(std::launch::async,
// &GraphManager::AddGraph, &graph_manager, graph_id, graph, options, context);
// fut1.wait();
// fut2.wait();
// Status status1 = fut1.get();
// Status status2 = fut2.get();
// EXPECT_EQ(status1, ge::SUCCESS);
// EXPECT_EQ(status2, ge::SUCCESS);
std::future<Status> fut1 = std::async(std::launch::async,
&GraphManager::AddGraph, &graph_manager, graph_id, graph, options, context);
std::future<Status> fut2 = std::async(std::launch::async,
&GraphManager::AddGraph, &graph_manager, graph_id, graph, options, context);
fut1.wait();
fut2.wait();
Status status1 = fut1.get();
Status status2 = fut2.get();
EXPECT_EQ(status1, ge::SUCCESS);
EXPECT_EQ(status2, ge::SUCCESS);
}

TEST_F(UtestGraphManagerTest, test_add_graph_4) {


Loading…
Cancel
Save