diff --git a/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/server/interceptor/LoggingInterceptorDstu2Test.java b/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/server/interceptor/LoggingInterceptorDstu2Test.java index f491eda0b5d..9d3e17b4f8c 100644 --- a/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/server/interceptor/LoggingInterceptorDstu2Test.java +++ b/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/server/interceptor/LoggingInterceptorDstu2Test.java @@ -169,8 +169,7 @@ public class LoggingInterceptorDstu2Test { ArgumentCaptor captor = ArgumentCaptor.forClass(String.class); verify(logger, timeout(1000).times(1)).info(captor.capture()); assertThat(captor.getValue(), startsWith("read - ")); - int millis = Integer.parseInt(captor.getValue().substring("read - ".length())); - assertThat(millis, greaterThan(0)); + Integer.parseInt(captor.getValue().substring("read - ".length())); } @Test @@ -193,7 +192,7 @@ public class LoggingInterceptorDstu2Test { ArgumentCaptor captor = ArgumentCaptor.forClass(String.class); verify(logger, timeout(1000).times(1)).info(captor.capture()); - assertThat(captor.getValue(), matchesPattern("[0-9]{3}")); + assertThat(captor.getValue(), matchesPattern("[1-9][0-9]{2}")); } @Test