From 32a4a081d9666974fcce8c6c06eb8286764a609d Mon Sep 17 00:00:00 2001 From: James Date: Wed, 8 Nov 2017 20:01:48 -0500 Subject: [PATCH] More test work -- Ahhhhh travis grr --- .../uhn/fhir/jpa/provider/r4/ResourceProviderR4Test.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/provider/r4/ResourceProviderR4Test.java b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/provider/r4/ResourceProviderR4Test.java index 76dbadc319a..5a458068ef2 100644 --- a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/provider/r4/ResourceProviderR4Test.java +++ b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/provider/r4/ResourceProviderR4Test.java @@ -3155,11 +3155,11 @@ public class ResourceProviderR4Test extends BaseResourceProviderR4Test { assertThat(myCapturingInterceptor.getLastResponse().getHeaders(Constants.HEADER_X_CACHE), Matchers.empty()); assertThat(myCapturingInterceptor.getLastResponse().getHeaders(Constants.HEADER_X_CACHE.toLowerCase()),Matchers.empty()); - assertThat(sw.getMillis(), lessThan(1000L)); - // If this fails under load, try increasing the throttle above assertEquals(null, found.getTotalElement().getValue()); assertEquals(1, found.getEntry().size()); + assertThat(sw.getMillis(), lessThan(1000L)); + } @Test @@ -3214,11 +3214,10 @@ public class ResourceProviderR4Test extends BaseResourceProviderR4Test { assertThat(myCapturingInterceptor.getLastResponse().getHeaders(Constants.HEADER_X_CACHE), Matchers.empty()); assertThat(myCapturingInterceptor.getLastResponse().getHeaders(Constants.HEADER_X_CACHE.toLowerCase()),Matchers.empty()); - assertThat(sw.getMillis(), lessThan(1000L)); - // If this fails under load, try increasing the throttle above assertEquals(null, found.getTotalElement().getValue()); assertEquals(1, found.getEntry().size()); + assertThat(sw.getMillis(), lessThan(1000L)); } @Test