Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#8367] improvement(core): Remove duplicate setOwner call in TestOwnerMetaService.testDeleteMetadataObject (#8378)

keepConcentration6fdeaecf6eb4
diff --git a/core/src/test/java/org/apache/gravitino/storage/relational/service/TestOwnerMetaService.java b/core/src/test/java/org/apache/gravitino/storage/relational/service/TestOwnerMetaService.java
index 908022f667..71fe73598b 100644
--- a/core/src/test/java/org/apache/gravitino/storage/relational/service/TestOwnerMetaService.java
+++ b/core/src/test/java/org/apache/gravitino/storage/relational/service/TestOwnerMetaService.java
@@ -510,11 +510,9 @@ class TestOwnerMetaService extends TestJDBCBackend {
.setOwner(topic.nameIdentifier(), topic.type(), user.nameIdentifier(), user.type());
OwnerMetaService.getInstance()
.setOwner(model.nameIdentifier(), model.type(), user.nameIdentifier(), user.type());
- OwnerMetaService.getInstance()
- .setOwner(model.nameIdentifier(), model.type(), user.nameIdentifier(), user.type());
UserMetaService.getInstance().deleteUser(user.nameIdentifier());
- Assertions.assertEquals(25, countAllOwnerRel(user.id()));
+ Assertions.assertEquals(24, countAllOwnerRel(user.id()));
Assertions.assertEquals(0, countActiveOwnerRel(user.id()));
}
}