Move to clang-format-16 (#908)

Fixes #848
This commit is contained in:
Alex Kremer
2023-10-19 16:55:04 +01:00
committed by GitHub
parent 5de87b9ef8
commit 1aab2b94b1
265 changed files with 3950 additions and 4743 deletions

View File

@@ -69,11 +69,9 @@ CheckSubscriberMessage(std::string out, std::shared_ptr<web::ConnectionBase> ses
{
auto sessionPtr = dynamic_cast<MockSession*>(session.get());
ASSERT_NE(sessionPtr, nullptr);
while (retry-- != 0)
{
while (retry-- != 0) {
std::this_thread::sleep_for(20ms);
if ((!sessionPtr->message.empty()) && json::parse(sessionPtr->message) == json::parse(out))
{
if ((!sessionPtr->message.empty()) && json::parse(sessionPtr->message) == json::parse(out)) {
return;
}
}
@@ -81,8 +79,7 @@ CheckSubscriberMessage(std::string out, std::shared_ptr<web::ConnectionBase> ses
}
// Fixture contains test target and mock backend
class SubscriptionManagerSimpleBackendTest : public MockBackendTest
{
class SubscriptionManagerSimpleBackendTest : public MockBackendTest {
protected:
util::Config cfg;
std::shared_ptr<feed::SubscriptionManager> subManagerPtr;