Browse Source

DATAMONGO-671 - Improve test case to not fail on fast machines.

pull/62/head
Thomas Darimont 13 years ago committed by Oliver Gierke
parent
commit
6e46fb12cb
  1. 3
      spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/MongoTemplateTests.java

3
spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/MongoTemplateTests.java

@ -1638,8 +1638,7 @@ public class MongoTemplateTests { @@ -1638,8 +1638,7 @@ public class MongoTemplateTests {
public void findsEntityByDateReference() {
TypeWithDate entity = new TypeWithDate();
entity.date = new Date();
entity.date = new Date(System.currentTimeMillis() - 10);
template.save(entity);
Query query = query(where("date").lt(new Date()));

Loading…
Cancel
Save