Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.

Commit

Permalink
Merge branch 'sockets' into test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyBanks committed Apr 29, 2014
2 parents 74927e5 + 922530d commit 21e0821
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test_live_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,14 @@ def test_se_message_echo(host_id, room_id):
seen_message_with_polling = []

def on_socket_message(message, wrapper):
if test_message_nonce in message['content']:
if (message['event_type'] == 1 and
test_message_nonce in message['content']):
seen_message_with_socket.append(message)
logger.debug("Saw test message in socket")

def on_polling_message(message, wrapper):
if test_message_nonce in message['content']:
if (message['event_type'] == 1 and
test_message_nonce in message['content']):
seen_message_with_polling.append(message)
logger.debug("Saw test message in polling")

Expand Down

0 comments on commit 21e0821

Please sign in to comment.