ttl can be as lower than 0 (purge interval)

This commit is contained in:
Martijn van Groningen 2013-08-08 17:43:11 +02:00
parent c568fb6344
commit f8f8cac0ed
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ public class SimpleTTLTests extends AbstractNodesTests {
long ttl0;
if (getResponse.isExists()) {
ttl0 = ((Number) getResponse.getField("_ttl").getValue()).longValue();
assertThat(ttl0, greaterThan(0L));
assertThat(ttl0, greaterThan(-purgeInterval));
assertThat(ttl0, lessThan(providedTTLValue - (currentTime - now)));
} else {
assertTrue((providedTTLValue - (currentTime - now)) < 0);