summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2013-02-15 08:57:14 +0000
committerWill Thompson <will.thompson@collabora.co.uk>2013-02-22 08:33:14 +0000
commit62fa6bd989afaec604f420692e10e7716a28496c (patch)
treef74d52c6d584640f88acd810a18979946ce39e0e
parentcc90a503a9a9ef4aab30b60512f3129de0c0b752 (diff)
muc: test resource-constraint is exposed reasonably
https://bugs.freedesktop.org/show_bug.cgi?id=43166#c7
-rw-r--r--tests/twisted/muc/send-error.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/twisted/muc/send-error.py b/tests/twisted/muc/send-error.py
index 012886957..33f376bf5 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,