Erixonich commented on code in PR #7607:
URL: https://github.com/apache/ignite-3/pull/7607#discussion_r2946202595


##########
modules/platforms/cpp/tests/fake_server/connection_test.cpp:
##########
@@ -76,3 +78,25 @@ TEST_F(connection_test, request_timeout) {
         EXPECT_EQ(error::code::OPERATION_TIMEOUT, err.get_status_code());
     }
 }
+
+TEST_F(connection_test, using_asio) {
+    fake_server fs{50900, get_logger()};
+    fs.start();
+
+    auto listener = std::make_shared<proxy::message_listener>();
+
+    proxy::asio_proxy proxy{
+        {proxy::configuration(50800, "127.0.0.1:50900", listener)}
+    };
+
+
+    ignite_client_configuration cfg;
+    cfg.set_logger(get_logger());
+    cfg.set_endpoints(get_endpoints());
+
+    auto cl = ignite_client::start(cfg, 5s);
+
+    auto cluster_nodes = cl.get_cluster_nodes();
+
+    ASSERT_EQ(1, cluster_nodes.size());

Review Comment:
   Not sure what you are talking about. It is cluster size, later I've used 
ASSERT_GT, because at least 2 request would appear (handshake + how many nodes 
there) I don't see why It would be flaky.



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