diff --git a/chutney/server/src/test/java/com/chutneytesting/admin/api/InfoControllerTest.java b/chutney/server/src/test/java/com/chutneytesting/admin/api/InfoControllerTest.java index e0cbec026..d917d689a 100644 --- a/chutney/server/src/test/java/com/chutneytesting/admin/api/InfoControllerTest.java +++ b/chutney/server/src/test/java/com/chutneytesting/admin/api/InfoControllerTest.java @@ -46,8 +46,9 @@ public void setUp() throws Exception { @Test public void should_return_chutney_version() throws Exception { + String versionRegex = "\\d\\.\\d\\.\\d+(-SNAPSHOT|-RC(\\d+)*)?"; this.mockMvc.perform(get("/api/v1/info/build/version")).andDo(print()).andExpect(status().isOk()) - .andExpect(content().string(matchesRegex("\\d\\.\\d\\.\\d+(-SNAPSHOT|-rc\\.d+)?"))); + .andExpect(content().string(matchesRegex(versionRegex))); } @Test