FANNG1 commented on code in PR #5590: URL: https://github.com/apache/gravitino/pull/5590#discussion_r1855203020
########## core/src/test/java/org/apache/gravitino/listener/api/event/TestPartitionEvent.java: ########## @@ -117,6 +117,14 @@ void testAddPartitionEvent() { checkPartitionInfo(partitionInfo, partition); Assertions.assertEquals(OperationType.ADD_PARTITION, event.operationType()); Assertions.assertEquals(OperationStatus.SUCCESS, event.operationStatus()); + + PreEvent preEvent = dummyEventListener.popPreEvent(); + Assertions.assertEquals(identifier, preEvent.identifier()); + Assertions.assertEquals(AddPartitionPreEvent.class, preEvent.getClass()); + partitionInfo = ((AddPartitionPreEvent) preEvent).createdPartitionRequest(); + checkPartitionInfo(partitionInfo, partition); + Assertions.assertEquals(OperationType.ADD_PARTITION, event.operationType()); + Assertions.assertEquals(OperationStatus.SUCCESS, event.operationStatus()); Review Comment: we should check `preEvent` not `event` here -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@gravitino.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org