HxpSerein commented on code in PR #13559:
URL: https://github.com/apache/iotdb/pull/13559#discussion_r1778252884


##########
iotdb-core/confignode/src/test/java/org/apache/iotdb/confignode/procedure/impl/node/RemoveDataNodesProcedureTest.java:
##########
@@ -29,21 +30,28 @@
 import java.io.DataOutputStream;
 import java.io.IOException;
 import java.nio.ByteBuffer;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
 
-public class RemoveDataNodeProcedureTest {
+public class RemoveDataNodesProcedureTest {
 
   @Test
   public void serDeTest() throws IOException {
-    RemoveDataNodeProcedure procedure0 =
-        new RemoveDataNodeProcedure(
+    List<TDataNodeLocation> removedDataNodes =
+        Collections.singletonList(
             new TDataNodeLocation(
                 10,
                 new TEndPoint("127.0.0.1", 6667),
                 new TEndPoint("127.0.0.1", 6668),
                 new TEndPoint("127.0.0.1", 6669),
                 new TEndPoint("127.0.0.1", 6670),
                 new TEndPoint("127.0.0.1", 6671)));
-
+    Map<Integer, NodeStatus> nodeStatusMap = new HashMap<>();
+    nodeStatusMap.put(10, NodeStatus.Running);
+    RemoveDataNodesProcedure procedure0 =
+        new RemoveDataNodesProcedure(removedDataNodes, nodeStatusMap);

Review Comment:
   Added.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscr...@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to