mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
No effective change - sys out for CI server - fix PG like clause in test
This commit is contained in:
@@ -76,14 +76,9 @@ public class TestBatchLazyWithCacheHits extends BaseTestCase {
|
||||
System.out.println("sql:" + sql);
|
||||
|
||||
// batch lazy loading into cache
|
||||
// ... in CI PG build the logger sometimes only catches the second sql
|
||||
if (sql.size() == 2) {
|
||||
assertThat(sql.get(0)).contains("from uuone t0 where t0.name like ? order by t0.name");
|
||||
assertThat(sql.get(1)).contains("from uuone t0 where t0.id in (?,");
|
||||
} else {
|
||||
assertThat(sql).hasSize(1);
|
||||
assertThat(sql.get(0)).contains("from uuone t0 where t0.id in (?,");
|
||||
}
|
||||
assertThat(sql).hasSize(2);
|
||||
assertThat(sql.get(0)).contains("from uuone t0 where t0.name like ?");
|
||||
assertThat(sql.get(1)).contains("from uuone t0 where t0.id in (?,");
|
||||
|
||||
statistics = beanCache.getStatistics(true);
|
||||
assertThat(statistics.getSize()).isGreaterThan(3);
|
||||
|
||||
Reference in New Issue
Block a user