mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-12-28 08:59:37 -05:00
Fix broken Channel test
This commit is contained in:
parent
9963cf37b8
commit
d2d121d49f
@ -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]):
|
||||
|
Loading…
Reference in New Issue
Block a user