diff --git a/cpp/CHANGELOG.md b/cpp/CHANGELOG.md index 3a9a42d038..862d2f5147 100644 --- a/cpp/CHANGELOG.md +++ b/cpp/CHANGELOG.md @@ -109,6 +109,7 @@ Please mark all change in change log and use the ticket from JIRA. - MS-528 - Hide some config used future - MS-530 - Add unittest for SearchTask->Load - MS-531 - Disable next version code +- MS-533 - Update resource_test to cover dump function ## New Feature - MS-343 - Implement ResourceMgr diff --git a/cpp/unittest/scheduler/resource_test.cpp b/cpp/unittest/scheduler/resource_test.cpp index 03500941b7..8a51bac5f9 100644 --- a/cpp/unittest/scheduler/resource_test.cpp +++ b/cpp/unittest/scheduler/resource_test.cpp @@ -86,9 +86,7 @@ TEST_F(ResourceBaseTest, dump) { ASSERT_FALSE(only_executor_->Dump().empty()); ASSERT_FALSE(both_enable_->Dump().empty()); ASSERT_FALSE(both_disable_->Dump().empty()); - std::stringstream ss; - ss << only_loader_ << only_executor_ << both_enable_ << both_disable_; - ASSERT_FALSE(ss.str().empty()); + std::cout << *only_loader_ << *only_executor_ << *both_enable_ << *both_disable_; } /************ ResourceAdvanceTest ************/