From d2d121d49f745cc1c5e74790775a1a5f72246ab1 Mon Sep 17 00:00:00 2001 From: Aaron Heise <5148966+acehoss@users.noreply.github.com> Date: Tue, 28 Feb 2023 08:38:36 -0600 Subject: [PATCH] Fix broken Channel test --- tests/channel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/channel.py b/tests/channel.py index b1097bf..3a00cbe 100644 --- a/tests/channel.py +++ b/tests/channel.py @@ -138,7 +138,7 @@ class MessageTest(MessageBase): class SystemMessage(MessageBase): - MSGTYPE = 0xffff + MSGTYPE = 0xf000 def pack(self) -> bytes: return bytes() @@ -299,7 +299,7 @@ class TestChannel(unittest.TestCase): print("Channel test register system message") with self.assertRaises(RNS.Channel.ChannelException): self.h.channel.register_message_type(SystemMessage) - self.h.channel.register_message_type(SystemMessage, is_system_type=True) + self.h.channel._register_message_type(SystemMessage, is_system_type=True) def eat_own_dog_food(self, message: MessageBase, checker: typing.Callable[[MessageBase], None]):