Skip to content

Commit fbf9f41

Browse files
committed
lint
1 parent 668677e commit fbf9f41

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/testStatsdClient.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void testSendRecv(uint64_t batchSize, uint64_t sendInterval) {
6060

6161
std::mt19937 twister(std::random_device{}());
6262
std::uniform_real_distribution<float> dist(0.f, 1.f);
63-
auto rand = [&]()->float{return dist(twister);};
63+
auto rand = [&]() -> float { return dist(twister); };
6464

6565
// Set a new config that has the client send messages to a proper address that can be resolved
6666
StatsdClient client("localhost", 8125, "sendRecv.", batchSize, sendInterval, 3, rand);
@@ -146,12 +146,14 @@ void testSendRecv(uint64_t batchSize, uint64_t sendInterval) {
146146
break;
147147
}
148148
if (messages[i] != expected[i]) {
149-
std::cerr << "Mismatch at index " << i << ": expected '" << expected[i] << "', got '" << messages[i] << "'" << std::endl;
149+
std::cerr << "Mismatch at index " << i << ": expected '" << expected[i] << "', got '" << messages[i]
150+
<< "'" << std::endl;
150151
break;
151152
}
152153
}
153154
if (messages.size() > expected.size()) {
154-
std::cerr << "Got more messages than expected, got " << messages.size() << ", expected " << expected.size() << std::endl;
155+
std::cerr << "Got more messages than expected, got " << messages.size() << ", expected " << expected.size()
156+
<< std::endl;
155157
}
156158
throw std::runtime_error("Unexpected stats");
157159
}

0 commit comments

Comments
 (0)