BAEL-542 test fix
This commit is contained in:
parent
c3cc42f458
commit
cc70eae896
@ -29,7 +29,6 @@ public class ResourceEndpoint {
|
||||
public ResponseEntity<TimestampDto> getServerTimestamp() {
|
||||
return ResponseEntity.ok()
|
||||
.cacheControl(CacheControl.noStore())
|
||||
.cacheControl(CacheControl.noCache())
|
||||
.body(new TimestampDto(LocalDateTime.now().toInstant(ZoneOffset.UTC).toEpochMilli()));
|
||||
}
|
||||
|
||||
|
@ -31,7 +31,7 @@ public class ResourceEndpointTest {
|
||||
.get(URL_PREFIX + "/timestamp")
|
||||
.then()
|
||||
.contentType(ContentType.JSON).and().statusCode(200).and()
|
||||
.header("Cache-Control", "no-cache");
|
||||
.header("Cache-Control", "no-store");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
x
Reference in New Issue
Block a user