This is an automated email from the ASF dual-hosted git repository.
brandonwilliams pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra.git
The following commit(s) were added to refs/heads/trunk by this push:
new 94663c3 Relax < check to <= for NodeToolGossipInfoTest
94663c3 is described below
commit 94663c314a8a2c69a90cc64ac7e60344ba1c60ce
Author: Brandon Williams <[email protected]>
AuthorDate: Thu Nov 12 13:45:21 2020 -0600
Relax < check to <= for NodeToolGossipInfoTest
Patch by brandonwilliams, reviewed by samt for CASSANDRA-16247
---
test/unit/org/apache/cassandra/tools/NodeToolGossipInfoTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/unit/org/apache/cassandra/tools/NodeToolGossipInfoTest.java
b/test/unit/org/apache/cassandra/tools/NodeToolGossipInfoTest.java
index e69f860..caca5ae 100644
--- a/test/unit/org/apache/cassandra/tools/NodeToolGossipInfoTest.java
+++ b/test/unit/org/apache/cassandra/tools/NodeToolGossipInfoTest.java
@@ -97,7 +97,7 @@ public class NodeToolGossipInfoTest extends CQLTester
}
@Test
- public void testTPStats() throws Throwable
+ public void testGossipInfo() throws Throwable
{
ToolResult tool = ToolRunner.invokeNodetool("gossipinfo");
Assertions.assertThat(tool.getStdout()).contains("/127.0.0.1");
@@ -125,6 +125,6 @@ public class NodeToolGossipInfoTest extends CQLTester
assertTrue(tool.getCleanedStderr().isEmpty());
assertEquals(0, tool.getExitCode());
String newHeartbeatCount =
StringUtils.substringBetween(tool.getStdout(), "heartbeat:", "\n");
- assertTrue(Integer.parseInt(origHeartbeatCount) <
Integer.parseInt(newHeartbeatCount));
+ assertTrue(Integer.parseInt(origHeartbeatCount) <=
Integer.parseInt(newHeartbeatCount));
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]