Skip to content

Commit e369628

Browse files
authored
Update testStatsdClient.cpp
1 parent fae2259 commit e369628

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/testStatsdClient.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void testSendRecv(uint64_t batchSize, uint64_t sendInterval) {
5959
std::thread server(mock, std::ref(mock_server), std::ref(messages));
6060

6161
// Set a new config that has the client send messages to a proper address that can be resolved
62-
StatsdClient client("localhost", 8125, "sendRecv.", batchSize, sendInterval, 3);
62+
StatsdClient client("localhost", 8125, "sendRecv.", batchSize, sendInterval, 3, 19); // this seed works for the testing below
6363
throwOnError(client);
6464

6565
// TODO: I forget if we need to wait for the server to be ready here before sending the first stats
@@ -77,7 +77,6 @@ void testSendRecv(uint64_t batchSize, uint64_t sendInterval) {
7777
expected.emplace_back("sendRecv.kiki:-1|c");
7878

7979
// Adjusts "toto" by +2
80-
client.seed(19); // this seed gets a hit on the first call
8180
client.count("toto", 2, 0.1f);
8281
throwOnError(client);
8382
expected.emplace_back("sendRecv.toto:2|c|@0.10");
@@ -97,7 +96,6 @@ void testSendRecv(uint64_t batchSize, uint64_t sendInterval) {
9796
expected.emplace_back("sendRecv.titifloat:-123.457|g");
9897

9998
// Record a timing of 2ms for "myTiming"
100-
client.seed(19);
10199
client.timing("myTiming", 2, 0.1f);
102100
throwOnError(client);
103101
expected.emplace_back("sendRecv.myTiming:2|ms|@0.10");

0 commit comments

Comments
 (0)