fix to tests m3

This commit is contained in:
maliakal_d 2022-12-06 10:34:17 +01:00
parent bb01f90e1f
commit 4614e0873a
2 changed files with 3 additions and 2 deletions

View File

@ -565,6 +565,7 @@ TEST_CASE("pumpprobe", "[.cmd]") {
// mask with counter 2 disabled and enabled(to test vth2)
uint32_t fixedMask[2] = {0x4, 0x3};
for (int i = 0; i != 2; ++i) {
std::cout << "i:"<< i <<std::endl;
det.setCounterMask(fixedMask[i]);
{
// pump probe
@ -589,7 +590,7 @@ TEST_CASE("pumpprobe", "[.cmd]") {
proxy.Call("pumpprobe", {"0"}, -1, PUT, oss);
REQUIRE(oss.str() == "pumpprobe 0\n");
REQUIRE(det.getCounterMask().tsquash(
"inconsistent counter mask") == 7);
"inconsistent counter mask") == fixedMask[i]);
REQUIRE(
det.getDAC(defs::VTH1, 0, {0})
.tsquash("inconsistent vth1 dac value") ==

View File

@ -1222,7 +1222,7 @@ TEST_CASE("clkphase", "[.cmd]") {
}
std::string s_deg_val = "15";
if (det_type == defs::MYTHEN3) {
s_deg_val = "14";
s_deg_val = "15";
} else if (det_type == defs::GOTTHARD2) {
s_deg_val = "23";
}