tkalkirill commented on code in PR #2592:
URL: https://github.com/apache/ignite-3/pull/2592#discussion_r1327076602


##########
modules/core/src/test/java/org/apache/ignite/internal/event/EventProducerTest.java:
##########
@@ -74,31 +68,28 @@ public void stopListenTest() {
         }
 
         assertEquals(stopListenAfterCount, listenConter.get());
-        assertEquals(0, removeCounter.get());
     }
 
     @Test
     public void parallelTest() {
-        Producer<TestEvent, TestEventParameters> producer = new Producer<>() {
-        };
+        AbstractEventProducer<TestEvent, TestEventParameters> producer = new 
AbstractEventProducer<>() {};
 
         final int listenersCount = 10_000;
         final int listenerIndexToRemove = 10;
         EventListener<TestEventParameters> listenerToRemove = null;
 
-        CompletableFuture toRemoveFuture = new CompletableFuture();
+        CompletableFuture<Void> toRemoveFuture = new CompletableFuture<>();
 
         for (int i = 0; i < listenersCount; i++) {
             EventListener<TestEventParameters> listener = i == 
listenerIndexToRemove
                     ? createEventListener(
-                        (p, e) -> {
-                            toRemoveFuture.complete(null);
+                    (p, e) -> {
+                        toRemoveFuture.complete(null);
 
-                            return completedFuture(false);
-                        },
-                        t -> {}
-                    )
-                    : createEventListener((p, e) -> completedFuture(false), t 
-> {});
+                        return completedFuture(false);
+                    }
+            )

Review Comment:
   fix 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: [email protected]

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

Reply via email to