Skip to content

Commit

Permalink
Make Admin UI tests less flaky #nolog
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Jan 6, 2024
1 parent 12134bd commit 3ab1f27
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/socketio/base_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,6 @@ def _get_event_handler(self, event, namespace, args):
# - self.handlers["*"][event]
# - self.handlers["*"]["*"]
handler = None
print(event, namespace)
print(namespace in self.handlers)
if namespace in self.handlers:
if event in self.handlers[namespace]:
handler = self.handlers[namespace][event]
Expand Down
1 change: 1 addition & 0 deletions tests/async/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ def test_admin_features(self, isvr):

# join and leave
admin_client.emit('join', ('/', 'room', client1.sid))
time.sleep(0.2)
admin_client.emit(
'emit', ('/', 'room', 'foo', {'bar': 'baz'}))
data = client1.receive(timeout=5)
Expand Down
1 change: 1 addition & 0 deletions tests/common/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ def test_admin_features(self, isvr):

# join and leave
admin_client.emit('join', ('/', 'room', client1.sid))
time.sleep(0.2)
admin_client.emit(
'emit', ('/', 'room', 'foo', {'bar': 'baz'}))
data = client1.receive(timeout=5)
Expand Down

0 comments on commit 3ab1f27

Please sign in to comment.