Github user pdxrunner commented on the pull request:
https://github.com/apache/incubator-geode/pull/136#issuecomment-213604710
There's a mismatch in the fail() message and the loop logic. The full wait
time is 10,000 millis, but the message (and preceding comments) say it's for
1,000 millis.
long giveup = System.currentTimeMillis() + 10000;
boolean done = false;
do {
Thread.sleep(10);
done = r.containsValueForKey("key");
} while (!done && System.currentTimeMillis() < giveup);
if (r.containsValueForKey("key")) {
fail("1 ms expire did not happen after waiting 1000 ms");
}
} finally {
System.getProperties().remove(LocalRegion.EXPIRY_MS_PROPERTY);
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---