aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2017-07-21 01:07:36 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2017-07-21 01:07:36 +0200
commit66510c1d787e3696ac8d04cde75148c9b162b905 (patch)
treeb4adfc1d3287e929c8c6c206144927c03d29be99 /test
parentSupport XEP-0357: Push Notifications (diff)
Add mod_push_keepalive
This module tries to keep pending stream management sessions of push clients alive (as long as the disconnected clients are reachable via push notifications).
Diffstat (limited to 'test')
-rw-r--r--test/ejabberd_SUITE_data/ejabberd.yml2
-rw-r--r--test/push_tests.erl2
2 files changed, 4 insertions, 0 deletions
diff --git a/test/ejabberd_SUITE_data/ejabberd.yml b/test/ejabberd_SUITE_data/ejabberd.yml
index 5ee287400..74cabf584 100644
--- a/test/ejabberd_SUITE_data/ejabberd.yml
+++ b/test/ejabberd_SUITE_data/ejabberd.yml
@@ -232,6 +232,7 @@ Welcome to this XMPP server."
mod_ping: []
mod_proxy65: []
mod_push: []
+ mod_push_keepalive: []
mod_s2s_dialback: []
mod_stream_mgmt:
resume_timeout: 3
@@ -294,6 +295,7 @@ Welcome to this XMPP server."
mod_ping: []
mod_proxy65: []
mod_push: []
+ mod_push_keepalive: []
mod_s2s_dialback: []
mod_stream_mgmt:
resume_timeout: 3
diff --git a/test/push_tests.erl b/test/push_tests.erl
index 535671ee1..4b49cc8fe 100644
--- a/test/push_tests.erl
+++ b/test/push_tests.erl
@@ -77,6 +77,8 @@ master_slave_cases() ->
sm_master(Config) ->
ct:comment("Waiting for the slave to close the socket"),
peer_down = get_event(Config),
+ ct:comment("Waiting a bit in order to test the keepalive feature"),
+ ct:sleep(5000), % Without mod_push_keepalive, the session would time out.
ct:comment("Sending message to the slave"),
send_test_message(Config),
ct:comment("Handling push notification"),