Skip to content

Commit

Permalink
Initialize received queue in test client
Browse files Browse the repository at this point in the history
Fixes #295
  • Loading branch information
miguelgrinberg committed Aug 2, 2016
1 parent 6d4acee commit 35399c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flask_socketio/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def _mock_send_packet(sid, pkt):

self.app = app
self.sid = uuid.uuid4().hex
self.queue[self.sid] = []
self.callback_counter = 0
self.socketio = socketio
socketio.server._send_packet = _mock_send_packet
Expand Down

0 comments on commit 35399c5

Please sign in to comment.