Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d32d2577 authored by William Escande's avatar William Escande Committed by Gerrit Code Review
Browse files

Merge "Gd Test fix sync handler wait"

parents b606a562 e61e7796
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -182,13 +182,8 @@ class LeAclConnectionTest : public ::testing::Test {
  }

  void sync_handler() {
    ASSERT(handler_ != nullptr);

    auto promise = std::promise<void>();
    auto future = promise.get_future();
    handler_->BindOnceOn(&promise, &std::promise<void>::set_value).Invoke();
    auto status = future.wait_for(2s);
    ASSERT_EQ(status, std::future_status::ready);
    ASSERT(thread_ != nullptr);
    ASSERT_TRUE(thread_->GetReactor()->WaitForIdle(2s));
  }

  AddressWithType address_1 =