Skip to content
Snippets Groups Projects
Commit 298a8e35 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

test: fix tearDown condition

Change-Id: I2204dbe8f5e141cdab23db82d9c9a4d47a90cf80
parent fff41b5f
Branches
No related tags found
No related merge requests found
......@@ -137,11 +137,10 @@ CallTest::tearDown()
std::condition_variable cv;
auto currentAccSize = Manager::instance().getAccountList().size();
std::atomic_bool accountsRemoved {false};
auto wantedAccountNumber = currentAccSize - (bob2Id.empty() ? 2 : 3);
confHandlers.insert(
DRing::exportable_callback<DRing::ConfigurationSignal::AccountsChanged>([&]() {
if (Manager::instance().getAccountList().size() <= currentAccSize - bob2Id.empty()
? 2
: 3) {
if (Manager::instance().getAccountList().size() <= wantedAccountNumber) {
accountsRemoved = true;
cv.notify_one();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment