better comment

This commit is contained in:
meejah 2021-04-14 16:47:52 -06:00
parent e7466a3595
commit 319145608d

View File

@ -508,7 +508,10 @@ class Usage(ServerBase, unittest.TestCase):
self.assertEqual(self._usage.events[0]["mood"], "empty", self._usage) self.assertEqual(self._usage.events[0]["mood"], "empty", self._usage)
def test_short(self): def test_short(self):
# XXX this test only makes sense for TCP # Note: this test only runs on TCP clients because WebSockets
# already does framing (so it's either "a bad handshake" or
# there's no handshake at all yet .. you can't have a "short"
# one).
p1 = self.new_protocol() p1 = self.new_protocol()
# hang up before sending a complete handshake # hang up before sending a complete handshake
p1.send(b"short") p1.send(b"short")