diff --git a/src/test/java/com/alipay/remoting/rpc/heartbeat/RuntimeClientHeartBeatTest.java b/src/test/java/com/alipay/remoting/rpc/heartbeat/RuntimeClientHeartBeatTest.java index ff9f29e4..7b1ad108 100644 --- a/src/test/java/com/alipay/remoting/rpc/heartbeat/RuntimeClientHeartBeatTest.java +++ b/src/test/java/com/alipay/remoting/rpc/heartbeat/RuntimeClientHeartBeatTest.java @@ -108,7 +108,7 @@ public void testRuntimeCloseAndEnableHeartbeat() throws InterruptedException { heartBeatProcessor.reset(); Thread.sleep(1500); logger.warn("after disable: " + heartBeatProcessor.getHeartBeatTimes()); - Assert.assertTrue(heartBeatProcessor.getHeartBeatTimes() == 0); + Assert.assertEquals(0, heartBeatProcessor.getHeartBeatTimes()); client.enableConnHeartbeat(addr); heartBeatProcessor.reset();