gyfora commented on code in PR #1260:
URL: 
https://github.com/apache/flink-kubernetes-operator/pull/1260#discussion_r4719567830


##########
flink-kubernetes-operator/src/test/java/org/apache/flink/kubernetes/operator/observer/JobStatusObserverTest.java:
##########
@@ -470,6 +481,31 @@ public void testExceptionLimitConfig() throws Exception {
                         .list()
                         .getItems();
         assertEquals(2, events.size());
+        assertThat(flinkService.getRequestedMaxExceptions()).isEqualTo(3);
+    }

Review Comment:
   I can't believe that we need 400 lines of tests for this single observer 
change feature. Can we simplify this to some clever more compact, non-redundant 
tests?



##########
flink-kubernetes-operator/src/test/java/org/apache/flink/kubernetes/operator/observer/JobStatusObserverTest.java:
##########
@@ -470,6 +481,31 @@ public void testExceptionLimitConfig() throws Exception {
                         .list()
                         .getItems();
         assertEquals(2, events.size());
+        assertThat(flinkService.getRequestedMaxExceptions()).isEqualTo(3);
+    }

Review Comment:
   I can't believe that we need 400 lines of tests for this single observer 
change. Can we simplify this to some clever more compact, non-redundant tests?



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