telepathy-gabble: muc: test resource-constraint is exposed reasonably
Will Thompson
wjt at kemper.freedesktop.org
Mon Mar 4 04:22:17 PST 2013
Module: telepathy-gabble
Branch: master
Commit: 62fa6bd989afaec604f420692e10e7716a28496c
URL: http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=62fa6bd989afaec604f420692e10e7716a28496c
Author: Will Thompson <will.thompson at collabora.co.uk>
Date: Fri Feb 15 08:57:14 2013 +0000
muc: test resource-constraint is exposed reasonably
https://bugs.freedesktop.org/show_bug.cgi?id=43166#c7
---
tests/twisted/muc/send-error.py | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/tests/twisted/muc/send-error.py b/tests/twisted/muc/send-error.py
index 0128869..33f376b 100644
--- a/tests/twisted/muc/send-error.py
+++ b/tests/twisted/muc/send-error.py
@@ -26,6 +26,16 @@ def test(q, bus, conn, stream):
delivery_status=cs.DELIVERY_STATUS_PERMANENTLY_FAILED,
send_error_value=cs.SendError.PERMISSION_DENIED)
+ # This time, we get rate-limited.
+ # <https://bugs.freedesktop.org/show_bug.cgi?id=43166>
+ send_message_and_expect_error(q, stream,
+ text_chan, test_handle, bob_handle,
+ "faster faster",
+ '500', 'wait', 'resource-constraint',
+ delivery_status=cs.DELIVERY_STATUS_TEMPORARILY_FAILED,
+ # Yuck this isn't a very good name is it?
+ send_error_value=cs.SendError.TOO_LONG)
+
# How about an error message in the reply? This is from Prosody. See
# https://bugs.freedesktop.org/show_bug.cgi?id=43166#c9
send_message_and_expect_error(q, stream,
More information about the telepathy-commits
mailing list