test(heidenhain): live tool-type gate skips a control that refuses R_RI 51 (#829)
v2-ci / unit-tests (push) Has been cancelled
v2-ci / unit-tests (push) Has been cancelled
Hermle49 (iTNC 530 NC 340490 03 SP10) refuses the tool selector with code 24; the driver correctly publishes BadNotSupported for every Tool/* leaf, so there is no runtime type to check. The test required >0 Good leaves and failed there. Claude-Session: https://claude.ai/code/session_01GT67AD99zQQqpLCVm3p7xk
This commit is contained in:
+5
@@ -117,6 +117,11 @@ public sealed class HeidenhainLiveIntegrationTests
|
||||
if (values[i].StatusCode == HeidenhainStatus.Good)
|
||||
values[i].Value!.GetType().ShouldBe(expected[i]);
|
||||
}
|
||||
|
||||
// Some controls (e.g. iTNC 530 NC 340490 03 SP10) refuse R_RI 51 with code 24 — the driver correctly
|
||||
// publishes BadNotSupported for every tool leaf, so there is no runtime type to check there.
|
||||
Assert.SkipWhen(values.All(v => v.StatusCode == HeidenhainStatus.BadNotSupported),
|
||||
"Control does not support the R_RI 51 tool selector — tool leaves are BadNotSupported.");
|
||||
values.Count(v => v.StatusCode == HeidenhainStatus.Good).ShouldBeGreaterThan(0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user