From 319145608de0b478ef7c201f4e42e59a7e6e6be7 Mon Sep 17 00:00:00 2001 From: meejah Date: Wed, 14 Apr 2021 16:47:52 -0600 Subject: [PATCH] better comment --- src/wormhole_transit_relay/test/test_transit_server.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wormhole_transit_relay/test/test_transit_server.py b/src/wormhole_transit_relay/test/test_transit_server.py index ae00ad3..f812a9a 100644 --- a/src/wormhole_transit_relay/test/test_transit_server.py +++ b/src/wormhole_transit_relay/test/test_transit_server.py @@ -508,7 +508,10 @@ class Usage(ServerBase, unittest.TestCase): self.assertEqual(self._usage.events[0]["mood"], "empty", self._usage) 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() # hang up before sending a complete handshake p1.send(b"short")