mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-08-06 07:02:25 +02:00
exposing receiver thread ids to client (#102)
* exposing receiver thread ids to client Co-authored-by: Erik Frojdh <erik.frojdh@gmail.com>
This commit is contained in:
co-authored by
Erik Frojdh
parent
2a2bb5f63a
commit
f5160b0978
@@ -126,6 +126,18 @@ TEST_CASE("detsize", "[.cmd][.new]") {
|
||||
REQUIRE_NOTHROW(proxy.Call("detsize", {}, -1, GET));
|
||||
}
|
||||
|
||||
TEST_CASE("settingslist", "[.cmd][.new]") {
|
||||
Detector det;
|
||||
CmdProxy proxy(&det);
|
||||
auto det_type = det.getDetectorType().squash();
|
||||
if (det_type == defs::CHIPTESTBOARD || det_type == defs::MYTHEN3) {
|
||||
REQUIRE_THROWS(proxy.Call("settingslist", {}, -1, GET));
|
||||
} else {
|
||||
REQUIRE_NOTHROW(proxy.Call("settingslist", {}, -1, GET));
|
||||
REQUIRE_THROWS(proxy.Call("settingslist", {}, -1, PUT));
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("settings", "[.cmd][.new]") {
|
||||
Detector det;
|
||||
CmdProxy proxy(&det);
|
||||
|
||||
Reference in New Issue
Block a user