mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
@ -333,8 +333,7 @@ TEST_CASE("streamingInterface") {
|
||||
REQUIRE(ToString(defs::streamingInterface::ETHERNET_10GB) == "10gbe");
|
||||
REQUIRE(ToString(defs::streamingInterface::LOW_LATENCY_LINK) == "lll");
|
||||
REQUIRE(ToString(defs::streamingInterface::LOW_LATENCY_LINK |
|
||||
defs::streamingInterface::ETHERNET_10GB) ==
|
||||
"lll, 10gbe");
|
||||
defs::streamingInterface::ETHERNET_10GB) == "lll, 10gbe");
|
||||
}
|
||||
|
||||
// Speed level
|
||||
@ -353,10 +352,8 @@ TEST_CASE("string to speedLevel") {
|
||||
defs::speedLevel::HALF_SPEED);
|
||||
REQUIRE(StringTo<defs::speedLevel>("quarter_speed") ==
|
||||
defs::speedLevel::QUARTER_SPEED);
|
||||
REQUIRE(StringTo<defs::speedLevel>("108") ==
|
||||
defs::speedLevel::G2_108MHZ);
|
||||
REQUIRE(StringTo<defs::speedLevel>("144") ==
|
||||
defs::speedLevel::G2_144MHZ);
|
||||
REQUIRE(StringTo<defs::speedLevel>("108") == defs::speedLevel::G2_108MHZ);
|
||||
REQUIRE(StringTo<defs::speedLevel>("144") == defs::speedLevel::G2_144MHZ);
|
||||
}
|
||||
|
||||
} // namespace sls
|
||||
|
@ -33,8 +33,7 @@ int open_socket(int port) {
|
||||
|
||||
const std::string portname = std::to_string(port);
|
||||
if (getaddrinfo(host, portname.c_str(), &hints, &res)) {
|
||||
throw RuntimeError("Failed at getaddrinfo with " +
|
||||
std::string(host));
|
||||
throw RuntimeError("Failed at getaddrinfo with " + std::string(host));
|
||||
}
|
||||
int fd = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
|
||||
if (fd == -1) {
|
||||
|
@ -5,7 +5,6 @@
|
||||
|
||||
namespace sls {
|
||||
|
||||
|
||||
TEST_CASE("Throws when cannot create socket") {
|
||||
REQUIRE_THROWS(ZmqSocket("sdiasodjajpvv", 5076001));
|
||||
}
|
||||
@ -118,4 +117,4 @@ TEST_CASE("Send header and data") {
|
||||
}
|
||||
}
|
||||
|
||||
} //namespace
|
||||
} // namespace sls
|
Reference in New Issue
Block a user