DATAMONGO-671 - Improve test case to not fail on fast machines.
This commit is contained in:
committed by
Oliver Gierke
parent
0afbf6fe19
commit
36d52862bc
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user