Skip to content

Commit 22761f7

Browse files
author
Yingjian Wu
committed
improve test
1 parent abbdfc5 commit 22761f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

metacat-functional-tests/src/functionalTest/groovy/com/netflix/metacat/ParentChildRelMetadataServiceSpec.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ class ParentChildRelMetadataServiceSpec extends Specification{
167167
def grandChild = QualifiedName.ofTable(catalog, database, "gc")
168168
def grandChildUUID = "gc_uuid"
169169
def type = "clone"
170+
service.createParentChildRelation(parent, parentUUID, child, childUUID, type)
170171

171172
when:
172173
service.createParentChildRelation(child, childUUID, grandChild, grandChildUUID, type)
@@ -453,6 +454,7 @@ class ParentChildRelMetadataServiceSpec extends Specification{
453454
when:
454455
service.rename(child2, child1)
455456
then:
457+
e = thrown(Exception)
456458
assert e.message.contains("is already a child table")
457459

458460
//Test p1

0 commit comments

Comments
 (0)