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

This commit is contained in:
Thomas Darimont
2013-07-05 11:56:51 +02:00
committed by Oliver Gierke
parent 0afbf6fe19
commit 36d52862bc

View File

@@ -1651,8 +1651,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()));