mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
Fix test regex
This commit is contained in:
@@ -56,14 +56,14 @@ public class SystemIdTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testPackedNodeId() {
|
public void testPackedNodeId() {
|
||||||
String packedNodeId = SystemId.getPackedNodeId();
|
String packedNodeId = SystemId.getPackedNodeId();
|
||||||
assertThat(packedNodeId).matches("[0-9A-Za-z_-]+");
|
assertThat(packedNodeId).matches("[0-9A-Za-z_~-]+");
|
||||||
logger.info("packed node id: " + packedNodeId);
|
logger.info("packed node id: " + packedNodeId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGenSessionCode() {
|
public void testGenSessionCode() {
|
||||||
String sessionCode=SystemId.genSessionCode(234L);
|
String sessionCode=SystemId.genSessionCode(234L);
|
||||||
assertThat(sessionCode).matches("[0-9a-zA-Z~-]+");
|
assertThat(sessionCode).matches("[0-9a-zA-Z_~-]+");
|
||||||
logger.info("session code: " + sessionCode);
|
logger.info("session code: " + sessionCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user