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:
parent
bac1b62756
commit
0b7292c3b5
@ -56,14 +56,14 @@ public class SystemIdTest {
|
||||
@Test
|
||||
public void testPackedNodeId() {
|
||||
String packedNodeId = SystemId.getPackedNodeId();
|
||||
assertThat(packedNodeId).matches("[0-9A-Za-z_-]+");
|
||||
assertThat(packedNodeId).matches("[0-9A-Za-z_~-]+");
|
||||
logger.info("packed node id: " + packedNodeId);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGenSessionCode() {
|
||||
String sessionCode=SystemId.genSessionCode(234L);
|
||||
assertThat(sessionCode).matches("[0-9a-zA-Z~-]+");
|
||||
assertThat(sessionCode).matches("[0-9a-zA-Z_~-]+");
|
||||
logger.info("session code: " + sessionCode);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user