You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/11/02 05:49:59 UTC

[GitHub] [dolphinscheduler] Yao-MR commented on a change in pull request #6656: fix npe when the LowerWeightHostManager can not get the workNodeInfo

Yao-MR commented on a change in pull request #6656:
URL: https://github.com/apache/dolphinscheduler/pull/6656#discussion_r740736648



##########
File path: dolphinscheduler-server/src/test/java/org/apache/dolphinscheduler/server/master/dispatch/host/RefreshResourceTaskTest.java
##########
@@ -0,0 +1,23 @@
+package org.apache.dolphinscheduler.server.master.dispatch.host;
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+/**
+ * RefreshResourceTask test
+ */
+@RunWith(MockitoJUnitRunner.class)
+public class RefreshResourceTaskTest {
+
+  @Mock
+  private LowerWeightHostManager.RefreshResourceTask refreshResourceTask;
+
+  @Test
+  public void testGetHostWeightWithResult() {

Review comment:
       hi @ruanwenjun 
      updated!




-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

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