mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
FIX: more timing issues - mysql does not support resolution in millis (#1288)
This commit is contained in:
committed by
Rob Bygrave
parent
3f8b9529e1
commit
78f8d48e2e
@@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user