From 2f12bc1efd4f69be2a6b12a32d9040e28df063ec Mon Sep 17 00:00:00 2001 From: Alice Date: Sun, 14 Dec 2025 11:38:23 +0100 Subject: [PATCH] num udp interfaces needs to be consistent across modules --- .../tests/Caller/test-Caller-rx-running.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/slsDetectorSoftware/tests/Caller/test-Caller-rx-running.cpp b/slsDetectorSoftware/tests/Caller/test-Caller-rx-running.cpp index d5046763d..3d9f272d8 100644 --- a/slsDetectorSoftware/tests/Caller/test-Caller-rx-running.cpp +++ b/slsDetectorSoftware/tests/Caller/test-Caller-rx-running.cpp @@ -139,7 +139,8 @@ TEST_CASE("numinterfaces - cant put if receiver is not idle", auto det_type = det.getDetectorType().squash(); if (det_type == defs::JUNGFRAU || det_type == defs::MOENCH) { - auto prev_numinterfaces = det.getNumberofUDPInterfaces(); + auto prev_numinterfaces = det.getNumberofUDPInterfaces().tsquash( + "Number of UDP Interfaces is not consistent among modules"); // start receiver REQUIRE_NOTHROW(caller.call("rx_start", {}, -1, PUT)); @@ -151,9 +152,7 @@ TEST_CASE("numinterfaces - cant put if receiver is not idle", // stop receiver REQUIRE_NOTHROW(caller.call("rx_stop", {}, -1, PUT)); - for (int i = 0; i != det.size(); ++i) { - det.setNumberofUDPInterfaces(prev_numinterfaces[i]); - } + det.setNumberofUDPInterfaces(prev_numinterfaces); } }