You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "ygerzhedovich (via GitHub)" <gi...@apache.org> on 2023/02/01 12:15:55 UTC

[GitHub] [ignite-3] ygerzhedovich commented on a diff in pull request #1590: IGNITE-18625 Sql. Code cleanup. Unmute tests.

ygerzhedovich commented on code in PR #1590:
URL: https://github.com/apache/ignite-3/pull/1590#discussion_r1093141727


##########
modules/sql-engine/src/test/java/org/apache/ignite/internal/sql/engine/util/CompositeSubscriptionTest.java:
##########
@@ -157,28 +157,27 @@ private void doPublishSubscribe(
 
         lsnr.reset(requested);
 
-        CompletableFuture.runAsync(() -> compPublisher.subscribe(new Subscriber<>() {
-                    @Override
-                    public void onSubscribe(Subscription subscription) {
-                        subscriptionRef.set(subscription);
-                    }
-
-                    @Override
-                    public void onNext(Integer item) {
-                        lsnr.onNext(item);
-                    }
-
-                    @Override
-                    public void onError(Throwable t) {
-                        assert false;
-                    }
-
-                    @Override
-                    public void onComplete() {
-                        lsnr.onComplete();
-                    }
-                })
-        ).join();
+        compPublisher.subscribe(new Subscriber<>() {

Review Comment:
   please return back runAsync here, it requeres for the test



-- 
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: notifications-unsubscribe@ignite.apache.org

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