| @@ -194,16 +194,16 @@ TEST_F(UtestGraphManagerTest, test_add_graph_3) { | |||||
| std::map<std::string, std::string> options; | std::map<std::string, std::string> options; | ||||
| OmgContext context; | 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_remove_graph_1) { | TEST_F(UtestGraphManagerTest, test_remove_graph_1) { | ||||