diff options
Diffstat (limited to 'tests/twisted/connect/ping.py')
-rw-r--r-- | tests/twisted/connect/ping.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/twisted/connect/ping.py b/tests/twisted/connect/ping.py index 9c1f6ca..09fafbd 100644 --- a/tests/twisted/connect/ping.py +++ b/tests/twisted/connect/ping.py @@ -16,6 +16,12 @@ def test(q, bus, conn, stream): stream.sendMessage('PONG', 'idle.test.server', ':%s' % timestamp, prefix='idle.test.server') + # Apparently bip replies like this: + e = q.expect('stream-PING') + assertLength(1, e.data) + timestamp = e.data[0] + stream.sendMessage('PONG', timestamp, prefix='idle.test.server') + q.expect('stream-PING') # If we don't answer Idle's ping, after some period of time Idle should # give up and close the connection. |