From ef6ca41c2a24ca66f81dd9b2f4ffc4675db3369b Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Thu, 12 Sep 2024 10:43:46 +0200 Subject: [PATCH] Update backend/src/test/kotlin/org/loculus/backend/controller/submission/GetReleasedDataEndpointTest.kt Co-authored-by: Fabian Engelniederhammer <92720311+fengelniederhammer@users.noreply.github.com> --- .../controller/submission/GetReleasedDataEndpointTest.kt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/backend/src/test/kotlin/org/loculus/backend/controller/submission/GetReleasedDataEndpointTest.kt b/backend/src/test/kotlin/org/loculus/backend/controller/submission/GetReleasedDataEndpointTest.kt index a9b243a01..f3aa07d01 100644 --- a/backend/src/test/kotlin/org/loculus/backend/controller/submission/GetReleasedDataEndpointTest.kt +++ b/backend/src/test/kotlin/org/loculus/backend/controller/submission/GetReleasedDataEndpointTest.kt @@ -147,12 +147,8 @@ class GetReleasedDataEndpointTest( ) responseAfterMoreDataAdded.andExpect(status().isOk) - .andExpect(header().exists(ETAG)) - .andExpect { result -> - val newEtag = result.response.getHeader(ETAG) - assertThat(newEtag, `is`(notNullValue())) - assertThat(newEtag, greaterThan(initialEtag)) - } + .andExpect(header().string(ETAG, notNullValue())) + .andExpect(header().string(ETAG, greaterThan(initialEtag))) } @Test