fix tsan errors on macOS when running the unittest

This commit is contained in:
Benjamin Sergeant
2019-09-23 21:51:55 -07:00
parent 169e225ccd
commit d46ce7eb63
5 changed files with 36 additions and 46 deletions

View File

@ -267,14 +267,12 @@ TEST_CASE("Cobra_Metrics_Publisher", "[cobra]")
CHECK(gIds.count("sms_set_rate_control_id") == 1);
CHECK(gIds.count("sms_set_blacklist_id") == 1);
std::cout << "Incoming bytes: " << incomingBytes << std::endl;
std::cout << "Outgoing bytes: " << outgoingBytes << std::endl;
spdlog::info("Incoming bytes {}", incomingBytes);
spdlog::info("Outgoing bytes {}", outgoingBytes);
std::cerr << "Stopping snake server... ";
spdlog::info("Stopping snake server...");
snakeServer.stop();
std::cerr << "OK" << std::endl;
std::cerr << "Stopping redis server... ";
spdlog::info("Stopping redis server...");
redisServer.stop();
std::cerr << "OK" << std::endl;
}