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 08:01:55 UTC

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

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



##########
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:
       If the following test cases need to use it, then queryConsumeConfig can be null.




-- 
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