From 58fc862bdc21303626d4b0db2fb17a8890b8806b Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Wed, 2 Sep 2026 10:44:43 +0200 Subject: [PATCH] fixed tests --- slsDetectorSoftware/tests/Caller/test-Caller-jungfrau.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slsDetectorSoftware/tests/Caller/test-Caller-jungfrau.cpp b/slsDetectorSoftware/tests/Caller/test-Caller-jungfrau.cpp index a776b37d3..04db67f5f 100644 --- a/slsDetectorSoftware/tests/Caller/test-Caller-jungfrau.cpp +++ b/slsDetectorSoftware/tests/Caller/test-Caller-jungfrau.cpp @@ -525,10 +525,12 @@ TEST_CASE("pedestalmode", "[.detectorintegration]") { REQUIRE_THROWS(caller.call("pedestalmode", {"256", "10"}, -1, PUT)); REQUIRE_THROWS(caller.call("pedestalmode", {"-1", "10"}, 0, PUT)); - REQUIRE_THROWS(caller.call("pedestalmode", {"20", "1000"}, 0, PUT)); + REQUIRE_THROWS(caller.call("pedestalmode", {"20", "65536"}, 0, PUT)); REQUIRE_THROWS(caller.call("pedestalmode", {"2000", "100"}, 0, PUT)); REQUIRE_THROWS(caller.call("pedestalmode", {"20", "-1"}, 0, PUT)); + REQUIRE_NOTHROW(caller.call("pedestalmode", {"20", "4000"}, 0, PUT)); + { std::ostringstream oss; caller.call("pedestalmode", {"30", "100"}, -1, PUT, oss);