summaryrefslogtreecommitdiff
path: root/tests/integration/test_udp.py
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-10-27 03:24:12 +0100
committerDirk Engling <erdgeist@erdgeist.org>2026-10-27 03:24:12 +0100
commit06b7c31e25ea355946814da03749ae197c68d969 (patch)
tree26b571432ed361f18ceccec6a17dead73075c7a0 /tests/integration/test_udp.py
parent8c22d577fe1bf1f5c66c82c32854bdcd9ed1b3ee (diff)
Fix some tests to match retired stats modes and wrong config file ordering
Diffstat (limited to 'tests/integration/test_udp.py')
-rw-r--r--tests/integration/test_udp.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/integration/test_udp.py b/tests/integration/test_udp.py
index 1dfa21b..1cb2389 100644
--- a/tests/integration/test_udp.py
+++ b/tests/integration/test_udp.py
@@ -149,5 +149,20 @@ class UdpScrape(TrackerTestCase):
149 sock.close() 149 sock.close()
150 150
151 151
152class UdpWorkersConfiguredAfterTheListener(TrackerTestCase):
153 """The harness writes its listen lines first, so this directive lands
154 below them: the position a config file should not care about."""
155
156 config = "listen.udp.workers 4\n"
157
158 def test_the_tracker_starts_and_still_answers_udp(self):
159 sock, connection_id = self.tracker.udp_connect()
160 try:
161 answer = self.tracker.udp_announce(sock, connection_id, self.hash_for("udpworkers"), left=0)
162 self.assertEqual(answer["seeders"], 1)
163 finally:
164 sock.close()
165
166
152if __name__ == "__main__": 167if __name__ == "__main__":
153 unittest.main() 168 unittest.main()