Skip to content

Commit 96e4394

Browse files
author
Jonathan Hui
committed
Only run test on old schema
1 parent fe6916f commit 96e4394

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

dao-impl/ebean-dao/src/test/java/com/linkedin/metadata/dao/EbeanLocalDAOTest.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3099,21 +3099,21 @@ public void testDuplicityOrdering() {
30993099
if (_schemaConfig == SchemaConfig.OLD_SCHEMA_ONLY) {
31003100
_server.execute(Ebean.createSqlUpdate(readSQLfromFile(GMA_DROP_ALL_SQL)));
31013101
_server.execute(Ebean.createSqlUpdate(readSQLfromFile("gma-create-all-duplicity.sql")));
3102-
}
31033102

3104-
EbeanLocalDAO<EntityAspectUnion, FooUrn> dao = createDao(FooUrn.class);
3105-
FooUrn urn = makeFooUrn(1);
3106-
String aspectName = ModelUtils.getAspectName(AspectFoo.class);
3107-
AspectFoo v1 = new AspectFoo().setValue("foo");
3108-
AspectFoo v0 = new AspectFoo().setValue("bar");
3109-
3110-
// introduce two v0's
3111-
addMetadataWithAuditStamp(urn, aspectName, 0, v1, 1234L, "fakeCreator", "fakeImpersonator");
3112-
addMetadataWithAuditStamp(urn, aspectName, 0, v0, 0L, "fakeCreator", "fakeImpersonator");
3113-
3114-
// when retrieving a v0-duplicate record, the returned value should be the LATEST (timestamp=1234L)
3115-
AspectFoo actual = dao.get(AspectFoo.class, urn).get();
3116-
assertEquals(actual, v1);
3103+
EbeanLocalDAO<EntityAspectUnion, FooUrn> dao = createDao(FooUrn.class);
3104+
FooUrn urn = makeFooUrn(1);
3105+
String aspectName = ModelUtils.getAspectName(AspectFoo.class);
3106+
AspectFoo v1 = new AspectFoo().setValue("foo");
3107+
AspectFoo v0 = new AspectFoo().setValue("bar");
3108+
3109+
// introduce two v0's
3110+
addMetadataWithAuditStamp(urn, aspectName, 0, v1, 1234L, "fakeCreator", "fakeImpersonator");
3111+
addMetadataWithAuditStamp(urn, aspectName, 0, v0, 0L, "fakeCreator", "fakeImpersonator");
3112+
3113+
// when retrieving a v0-duplicate record, the returned value should be the LATEST (timestamp=1234L)
3114+
AspectFoo actual = dao.get(AspectFoo.class, urn).get();
3115+
assertEquals(actual, v1);
3116+
}
31173117
}
31183118

31193119
@Nonnull

0 commit comments

Comments
 (0)