Fix default value of endpoint's cache ttl

Closes gh-12173
This commit is contained in:
Stephane Nicoll
2018-02-22 13:35:50 +01:00
parent 56c8bf74b2
commit 3fddfee65c
2 changed files with 2 additions and 2 deletions

View File

@@ -706,7 +706,7 @@ public class ConfigurationMetadataAnnotationProcessorTests {
private Metadata.MetadataItemCondition cacheTtl(String endpointId) {
return Metadata
.withProperty("management.endpoint." + endpointId + ".cache.time-to-live")
.ofType(Duration.class).withDefaultValue(0)
.ofType(Duration.class).withDefaultValue("0ms")
.withDescription("Maximum time that a response can be cached.");
}