This is an automated email from the ASF dual-hosted git repository.

baodi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-client-cpp.git


The following commit(s) were added to refs/heads/main by this push:
     new b4f70dc  Fix TableViewTest.testCreateTableView flaky test. (#222)
b4f70dc is described below

commit b4f70dc4f570c33c0bb6ebb08c212a03799fd829
Author: Baodi Shi <[email protected]>
AuthorDate: Tue Mar 21 11:10:28 2023 +0800

    Fix TableViewTest.testCreateTableView flaky test. (#222)
    
    * Fix TableViewTest.testCreateTableView flaky test.
    
    * Remove async close tv test.
---
 tests/TableViewTest.cc | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/tests/TableViewTest.cc b/tests/TableViewTest.cc
index 91a16bb..5d42173 100644
--- a/tests/TableViewTest.cc
+++ b/tests/TableViewTest.cc
@@ -55,15 +55,7 @@ TEST(TableViewTest, testCreateTableView) {
     ASSERT_EQ(ResultOk, client.createTableView(topic, {.schemaInfo = 
schemaInfo}, tableView));
     ASSERT_EQ(ResultOk, tableView.close());
 
-    // Test async create and close the client during the process.
-    Latch latch(1);
-    client.createTableViewAsync(
-        topic, tableViewConfiguration, [&latch](Result result, const 
TableView& tableView) {
-            latch.countdown();
-            ASSERT_TRUE(result == ResultDisconnected || result == 
ResultAlreadyClosed);
-        });
     client.close();
-    latch.wait();
 }
 
 TEST(TableViewTest, testSimpleTableView) {

Reply via email to