From 05f3c0199fa2266e02ccbcbb0af622ff0810579b Mon Sep 17 00:00:00 2001 From: Martin Teichmann <martin.teichmann@xfel.eu> Date: Sun, 18 Feb 2024 17:10:38 +0100 Subject: [PATCH] fix tests --- ebpfcat/ethercat_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ebpfcat/ethercat_test.py b/ebpfcat/ethercat_test.py index 3447c4a..990619c 100644 --- a/ebpfcat/ethercat_test.py +++ b/ebpfcat/ethercat_test.py @@ -86,7 +86,7 @@ class MockTerminal(Terminal): self.operational = state async def sdo_read(self, index, subindex=None): - assert self.operational >= 2 + assert self.operational.value >= 2 if subindex is None: r = b'' for i in count(1): -- GitLab