You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2022/03/02 05:03:56 UTC

[GitHub] [incubator-inlong] wardlican commented on a change in pull request #2817: [INLONG-2816][BUG][Sort-sdk]fix the OOM ERROR of InLongTopicManagerImplTest

wardlican commented on a change in pull request #2817:
URL: https://github.com/apache/incubator-inlong/pull/2817#discussion_r817350257



##########
File path: inlong-sdk/sort-sdk/src/test/java/org/apache/inlong/sdk/sort/impl/InLongTopicManagerImplTest.java
##########
@@ -63,7 +62,9 @@ public void setUp() throws Exception {
         SortClientConfig sortClientConfig = PowerMockito.mock(SortClientConfig.class);
         when(clientContext.getConfig()).thenReturn(sortClientConfig);
         when(sortClientConfig.getSortTaskId()).thenReturn("test");
+        when(sortClientConfig.getUpdateMetaDataIntervalSec()).thenReturn(60);
         queryConsumeConfig = PowerMockito.mock(QueryConsumeConfigImpl.class);
+        inLongTopicManager = new InLongTopicManagerImpl(clientContext, queryConsumeConfig);

Review comment:
       This parameter needs to be instantiated, and the following test cases need to use it




-- 
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-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org