AcquisitionDevice: IPv4 address and UDP destination port is property of the device and not of a particular run
This commit is contained in:
@@ -1006,8 +1006,16 @@ TEST_CASE("DiffractionExperiment_DetectorModuleHostname","[DiffractionExperiment
|
||||
JFJochProtoBuf::DetectorConfig det_cfg;
|
||||
|
||||
JFJochProtoBuf::ReceiverNetworkConfig net_cfg;
|
||||
net_cfg.add_fpga_mac_addr("AA:BB:CC:DD:EE:FF");
|
||||
net_cfg.add_fpga_mac_addr("AA:BB:CC:DD:EE:FE");
|
||||
|
||||
auto d1 = net_cfg.add_device();
|
||||
d1->set_mac_addr("00:00:00:00:00:00");
|
||||
d1->set_ipv4_addr("10.10.50.1");
|
||||
d1->set_udp_port(1234);
|
||||
|
||||
auto d2 = net_cfg.add_device();
|
||||
d2->set_mac_addr("00:00:00:00:00:01");
|
||||
d2->set_ipv4_addr("10.10.50.2");
|
||||
d2->set_udp_port(1234);
|
||||
|
||||
std::vector<std::string> h_out;
|
||||
REQUIRE_NOTHROW(x.GetDetectorModuleHostname(h_out));
|
||||
|
||||
Reference in New Issue
Block a user