diff --git a/src/test/java/org/elasticsearch/shield/ssl/SSLSettingsTests.java b/src/test/java/org/elasticsearch/shield/ssl/SSLSettingsTests.java index 23085daa735..0442bcab13c 100644 --- a/src/test/java/org/elasticsearch/shield/ssl/SSLSettingsTests.java +++ b/src/test/java/org/elasticsearch/shield/ssl/SSLSettingsTests.java @@ -135,7 +135,7 @@ public class SSLSettingsTests extends ElasticsearchTestCase { assertThat(sslSettings.trustStoreAlgorithm, is(equalTo("trusted"))); assertThat(sslSettings.sslProtocol, is(equalTo("ssl"))); assertThat(sslSettings.sessionCacheSize, is(equalTo(3))); - assertThat(sslSettings.sessionCacheTimeout, is(equalTo(TimeValue.parseTimeValue("10m", null)))); + assertThat(sslSettings.sessionCacheTimeout, is(equalTo(TimeValue.timeValueMinutes(10L)))); } @Test