You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by aa...@apache.org on 2022/08/03 05:24:39 UTC

[rocketmq-clients] 03/04: WIP

This is an automated email from the ASF dual-hosted git repository.

aaronai pushed a commit to branch java_dev
in repository https://gitbox.apache.org/repos/asf/rocketmq-clients.git

commit 60e25dc3569991929850401d9ebb45dc84102034
Author: Aaron Ai <aa...@apache.org>
AuthorDate: Wed Aug 3 13:08:33 2022 +0800

    WIP
---
 cpp/source/base/tests/AssignmentTest.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cpp/source/base/tests/AssignmentTest.cpp b/cpp/source/base/tests/AssignmentTest.cpp
index c5e29aa..dcb3e58 100644
--- a/cpp/source/base/tests/AssignmentTest.cpp
+++ b/cpp/source/base/tests/AssignmentTest.cpp
@@ -32,9 +32,9 @@ public:
 };
 
 TEST_F(AssignmentTest, testSort) {
-  // std::vector<rmq::Assignment> assignments;
-  // std::sort(assignments.begin(), assignments.end(),
-  //           [](const rmq::Assignment& lhs, const rmq::Assignment& rhs) { return lhs < rhs; });
+  std::vector<rmq::Assignment> assignments;
+  std::sort(assignments.begin(), assignments.end(),
+            [](const rmq::Assignment& lhs, const rmq::Assignment& rhs) { return lhs < rhs; });
 }
 
 ROCKETMQ_NAMESPACE_END
\ No newline at end of file