From 678f5d079b6ac040e5fb1877eb8707534806c4b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Sun, 29 Apr 2018 23:25:53 +0200 Subject: Add a test for the 0 MAM query --- tests/end_to_end/__main__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py index 1ec5a74..a7a6a91 100644 --- a/tests/end_to_end/__main__.py +++ b/tests/end_to_end/__main__.py @@ -2296,6 +2296,13 @@ if __name__ == '__main__': ("/iq[@type='result'][@id='id4'][@from='#foo%{irc_server_one}'][@to='{jid_one}/{resource_one}']", "/iq/mam:fin/rsm:set/rsm:last[text()='{last_uuid}']", "!/iq/mam:fin[@complete='true']",)), + + # Test if everything is fine even with weird max value: 0 + partial(send_stanza, "0"), + + partial(expect_stanza, + ("/iq[@type='result'][@id='id5'][@from='#foo%{irc_server_one}'][@to='{jid_one}/{resource_one}']", + "!/iq/mam:fin[@complete='true']",)), ]), Scenario("channel_history_on_fixed_server", [ -- cgit v1.2.3