Skip to content

Commit

Permalink
Fix unit tests by adding setTcpNoDelay to FakeTransport. (#402)
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier Wilkinson (reivilibre) <[email protected]>
  • Loading branch information
reivilibre authored Dec 18, 2024
1 parent 02c12ab commit f06e577
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/402.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix unit tests by adding `setTcpNoDelay` to `FakeTransport`.
3 changes: 3 additions & 0 deletions tests/twisted_test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ def flush(self, maxbytes=None):
logger.info("FakeTransport: Buffer now empty, completing disconnect")
self.disconnected = True

def setTcpNoDelay(self, new: bool) -> None:
pass


def get_test_https_policy():
"""Get a test IPolicyForHTTPS which trusts the test CA cert
Expand Down

0 comments on commit f06e577

Please sign in to comment.