FIX: more timing issues - mysql does not support resolution in millis (#1288)

This commit is contained in:
Roland Praml
2018-02-27 11:00:58 +13:00
committed by Rob Bygrave
parent 3f8b9529e1
commit 78f8d48e2e
5 changed files with 15 additions and 11 deletions
@@ -16,6 +16,7 @@ import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
@@ -119,7 +120,7 @@ public class TestStatelessUpdate extends BaseTestCase {
Customer result = Ebean.find(Customer.class, customer.getId());
// assert
assertEquals(customer.getUpdtime().getTime(), result.getUpdtime().getTime());
assertThat(result.getUpdtime()).isEqualToIgnoringMillis(customer.getUpdtime());
}
/**