Skip to content

Commit

Permalink
Allow optional semrev 'v' prefix in fabric-ca reported version
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Kneubuhl <[email protected]>
(cherry picked from commit 9f2d573)
  • Loading branch information
jkneubuh authored and bestbeforetoday committed Dec 16, 2022
1 parent 3dfc858 commit e2ab2bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ public void testGetInfo() throws Exception {
assertNotNull("client.info returned null.", info);
String version = info.getVersion();
assertNotNull("client.info.getVersion returned null.", version);
assertTrue(format("Version '%s' didn't match expected pattern", version), version.matches("^\\d+\\.\\d+\\.\\d+($|-.*)"));
assertTrue(format("Version '%s' didn't match expected pattern", version), version.matches("^v?\\d+\\.\\d+\\.\\d+($|-.*)"));
}

}
Expand Down

0 comments on commit e2ab2bc

Please sign in to comment.