From 2f6ada10ade5a435c5152a28aa814b4674202695 Mon Sep 17 00:00:00 2001 From: meejah Date: Tue, 27 Sep 2022 16:31:43 -0600 Subject: [PATCH] cleanup --- src/wormhole_transit_relay/test/test_backpressure.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/wormhole_transit_relay/test/test_backpressure.py b/src/wormhole_transit_relay/test/test_backpressure.py index 0128c66..afd6648 100644 --- a/src/wormhole_transit_relay/test/test_backpressure.py +++ b/src/wormhole_transit_relay/test/test_backpressure.py @@ -108,12 +108,18 @@ class Receiver(WebSocketClientProtocol): class TransitWebSockets(unittest.TestCase): + """ + Integration-style tests of the transit WebSocket relay, using the + real reactor (and running transit as a subprocess). + """ @inlineCallbacks def test_buffer_fills(self): """ - A running transit relay stops accepting incoming data if the peer - isn't reading. + A running transit relay stops accepting incoming data at a + reasonable amount if the peer isn't reading. This test defines + that as 'less than 100MiB' although in practice Twisted seems + to stop before 10MiB. """ from twisted.internet import reactor transit_proto = _CollectOutputProtocol()