Skip to content

Commit

Permalink
Update backend/src/test/kotlin/org/loculus/backend/controller/submiss…
Browse files Browse the repository at this point in the history
…ion/GetReleasedDataEndpointTest.kt

Co-authored-by: Fabian Engelniederhammer <92720311+fengelniederhammer@users.noreply.github.com>
  • Loading branch information
corneliusroemer and fengelniederhammer committed Sep 12, 2024
1 parent 7908410 commit a870345
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a870345

Please sign in to comment.