Myasuka commented on code in PR #23764:
URL: https://github.com/apache/flink/pull/23764#discussion_r1403008922


##########
flink-kubernetes/src/test/java/org/apache/flink/kubernetes/kubeclient/resources/KubernetesSharedInformerITCase.java:
##########
@@ -72,56 +71,41 @@ void setUp() throws Exception {
     @AfterEach
     void tearDown() throws Exception {
         ExecutorUtils.gracefulShutdown(5, TimeUnit.SECONDS, 
watchCallbackExecutorService);
-        client.deleteConfigMapsByLabels(labels).get();
+        client.deleteConfigMap(configMapName).get();
     }
 
     @Test
     @Timeout(120000)
     public void testWatch() throws Exception {
 
         try (KubernetesConfigMapSharedWatcher watcher =
-                client.createConfigMapSharedWatcher(labels)) {
+                client.createConfigMapSharedWatcher(configMapName)) {
             for (int i = 0; i < 10; i++) {

Review Comment:
   I agree, I think we can drop the loop 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to