hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/node/TestNodeManager.java
@Test
  public void testScmNoHeartbeats() throws IOException,
      InterruptedException, TimeoutException {

    try (SCMNodeManager nodeManager = createNodeManager(getConf())) {
      GenericTestUtils.waitFor(() -> nodeManager.waitForHeartbeatProcessed(),
          100, 4 * 1000);
      assertFalse("No heartbeats, Node manager should have been in" +
          " chill mode.", nodeManager.isOutOfChillMode());
    }
  }
/**
   * asserts that if we send no heartbeats node manager stays in chillmode.
   *
   * @throws IOException
   * @throws InterruptedException
   * @throws TimeoutException
   */
asserts that if we send no heartbeats node manager stays in chillmode.
asserts that if we send no heartbeats node manager stays in chillmode .
@Test
  public void testScmNoHeartbeats() throws IOException,
      InterruptedException, TimeoutException {
    try (SCMNodeManager nodeManager = createNodeManager(getConf())) {
      GenericTestUtils.waitFor(() -> nodeManager.waitForHeartbeatProcessed(),
          100, 4 * 1000);
      assertFalse("No heartbeats, Node manager should have been in" +
          " chill mode.", nodeManager.isOutOfChillMode());
    }
  }
@ Test public void testScmNoHeartbeats ( ) throws IOException , InterruptedException , TimeoutException { try ( SCMNodeManager nodeManager = createNodeManager ( getConf ( ) ) ) { GenericTestUtils . waitFor ( ( ) -> nodeManager . waitForHeartbeatProcessed ( ) , 100 , 4 * 1000 ) ; assertFalse ( "No heartbeats, Node manager should have been in" + " chill mode." , nodeManager . isOutOfChillMode ( ) ) ; } }
asserts that if we send no heartbeats node manager stays in chillmode.
asserts that if we send no heartbeats node manager stays in chillmode .