This commit is contained in:
Shay Banon 2012-08-02 09:40:54 +03:00
parent e88dbafe51
commit 7a0d7f531d
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ public class UpdateTests extends AbstractNodesTests {
getResponse = client.prepareGet("test", "type1", "2").setFields("_ttl").execute().actionGet();
ttl = ((Number) getResponse.field("_ttl").value()).longValue();
assertThat(ttl, greaterThan(0L));
assertThat(ttl, lessThan(3600000L));
assertThat(ttl, lessThanOrEqualTo(3600000L));
// check timestamp update
client.prepareIndex("test", "type1", "3").setSource("field", 1).setRefresh(true).execute().actionGet();