This commit is contained in:
2020-06-04 17:42:24 +02:00
parent 099805ba8b
commit 7f6d57d6ba
6 changed files with 22 additions and 27 deletions

View File

@ -534,9 +534,10 @@ TEST_CASE("patsetbit", "[.cmd][.new]") {
TEST_CASE("patternstart", "[.cmd][.new]") {
Detector det;
CmdProxy proxy(&det);
REQUIRE_THROWS(proxy.Call("patternstart", {}, -1, GET));
auto det_type = det.getDetectorType().squash();
if (det_type == defs::MYTHEN3) {
REQUIRE_THROWS(proxy.Call("patternstart", {}, -1, PUT));
REQUIRE_NOTHROW(proxy.Call("patternstart", {}, -1, PUT));
} else {
REQUIRE_THROWS(proxy.Call("patternstart", {}, -1, PUT));
}