Skip to content

Commit

Permalink
fixup c48a1f9: update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jan 10, 2023
1 parent c48a1f9 commit 55e68d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unittests/unit/net/protocol_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

from xpra.util import csv, envint, envbool
from xpra.net.protocol import socket_handler
from xpra.net.protocol.check import verify_packet
from xpra.net.protocol.constants import CONNECTION_LOST
from xpra.net.bytestreams import Connection
from xpra.net.compression import Compressed
Expand Down Expand Up @@ -112,7 +113,6 @@ def make_memory_protocol(self, data=(b""), read_buffer_size=1, hangup_delay=0,
return p

def test_verify_packet(self):
verify_packet = socket_handler.verify_packet
for x in (True, 1, "hello", {}, None):
assert verify_packet(x) is False
assert verify_packet(["foo", 1]) is True
Expand Down

0 comments on commit 55e68d4

Please sign in to comment.