Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Update reset device list mock before starting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Feb 1, 2022
1 parent f1a31c4 commit 60a291a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/handlers/test_appservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,9 @@ def prepare(self, reactor, clock, hs):
"exclusive_as_user", "password", self.exclusive_as_user_device_id
)

# Ensure that the mock is reset after creating devices (and thus updating device lists)
self.send_mock.reset_mock()

@unittest.override_config(
{"experimental_features": {"msc2409_to_device_messages_enabled": True}}
)
Expand Down

0 comments on commit 60a291a

Please sign in to comment.