mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-19 23:02:24 +00:00
Fix test assert for multi-database
This commit is contained in:
1 parent
92e85e32a2
commit
d4d1e571d3
1 file changed
+3
-1
@@ -267,7 +267,9 @@ public class TestNoFk extends BaseTestCase {
|
|||||||
assertThat(files).hasSize(2);
|
assertThat(files).hasSize(2);
|
||||||
List<String> sql = LoggedSql.stop();
|
List<String> sql = LoggedSql.stop();
|
||||||
assertThat(sql).hasSize(1);
|
assertThat(sql).hasSize(1);
|
||||||
assertThat(sql.get(0)).contains("select t0.file_name, t0.owner_user_id, t0.owner_soft_del_user_id, t1.user_id, t1.user_name, t1.user_id is null from efile_no_fk t0 left join euser_no_fk_soft_del t1 on t1.user_id = t0.owner_soft_del_user_id");
|
if (isH2() || isPostgres()) {
|
||||||
|
assertThat(sql.get(0)).contains("select t0.file_name, t0.owner_user_id, t0.owner_soft_del_user_id, t1.user_id, t1.user_name, t1.user_id is null from efile_no_fk t0 left join euser_no_fk_soft_del t1 on t1.user_id = t0.owner_soft_del_user_id");
|
||||||
|
}
|
||||||
|
|
||||||
EFileNoFk file1 = files.get(0);
|
EFileNoFk file1 = files.get(0);
|
||||||
EFileNoFk file2 = files.get(1);
|
EFileNoFk file2 = files.get(1);
|
||||||
|
|||||||
Reference in new issue
Block a user