[telepathy-gabble/telepathy-gabble-0.8] check that we don't flood proxies with useless requests
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Fri Dec 4 05:41:21 PST 2009
---
tests/twisted/test-fallback-socks5-proxy.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/tests/twisted/test-fallback-socks5-proxy.py b/tests/twisted/test-fallback-socks5-proxy.py
index e95f091..ab78bf9 100644
--- a/tests/twisted/test-fallback-socks5-proxy.py
+++ b/tests/twisted/test-fallback-socks5-proxy.py
@@ -175,6 +175,9 @@ def send_file(q, bus, conn, stream):
send_socks5_reply(stream, e1.stanza)
send_socks5_reply(stream, e2.stanza)
+ # ensure that the same proxy is not queried more than once
+ q.forbid_events(proxy_query_events)
+
proxies = wait_si_and_return_proxies(q, stream)
check_proxies([('fallback2-proxy.localhost', '127.0.0.1', '6789'),
--
1.5.6.5
More information about the telepathy-commits
mailing list