No effective change - sys out for CI server - fix PG like clause in test

This commit is contained in:
Robin Bygrave
2016-05-13 16:23:19 +12:00
parent 545f40703e
commit 2a5be6db3d
@@ -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);