mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 16:20:03 +02:00
fix m3 tests
This commit is contained in:
parent
4614e0873a
commit
8f68e395bd
@ -40,8 +40,10 @@ TEST_CASE("savepattern", "[.cmd]") {
|
||||
det_type == defs::MYTHEN3) {
|
||||
REQUIRE_THROWS(
|
||||
proxy.Call("savepattern", {"/tmp/pattern.txt"}, -1, GET));
|
||||
if (det.size() == 1) {
|
||||
REQUIRE_NOTHROW(
|
||||
proxy.Call("savepattern", {"/tmp/pattern.txt"}, -1, PUT));
|
||||
}
|
||||
} else {
|
||||
REQUIRE_THROWS(
|
||||
proxy.Call("savepattern", {"/tmp/pattern.txt"}, -1, PUT));
|
||||
|
@ -2302,6 +2302,9 @@ TEST_CASE("scan", "[.cmd]") {
|
||||
// auto previous = det.getDAC(ind, false);
|
||||
// auto notImplementedPrevious = det.getDAC(notImplementedInd, false);
|
||||
|
||||
if (det_type == defs::MYTHEN3 && det.size() > 1) {
|
||||
;// scan only allowed for single module due to sync
|
||||
} else {
|
||||
{
|
||||
std::ostringstream oss;
|
||||
proxy.Call("scan", {ToString(ind), "500", "1500", "500"}, -1, PUT, oss);
|
||||
@ -2379,6 +2382,7 @@ TEST_CASE("scan", "[.cmd]") {
|
||||
// {i});
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("scanerrmsg", "[.cmd]") {
|
||||
Detector det;
|
||||
|
Loading…
x
Reference in New Issue
Block a user