Ejemplo n.º 1
0
  @Override
  protected void tearDown() throws Exception {
    super.tearDown();

    if (sik != null)
      machine.sendMessage(
          Encoder.encode(
              new Protocolv20Encoder(),
              new CloseSession(
                  IpmiVersion.V20, cs, AuthenticationType.RMCPPlus, managedSystemSessionId),
              getSequenceNumber(),
              managedSystemSessionId));

    machine.stop();

    messenger.closeConnection();

    // Lets BMC to recover before acquiring the next session in the next
    // test
    Thread.sleep(2000);
  }