summary refs log tree commit diff
path: root/tests/test_state.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-09-01 15:57:35 +0100
committerErik Johnston <erik@matrix.org>2015-09-01 15:57:35 +0100
commitb345853918b9300bdde19010d29bf66973497de7 (patch)
treef21c7d4bc77b933e56d4d60c660d3e12f7bd90c1 /tests/test_state.py
parentAdd flag which disables federation of the room (diff)
downloadsynapse-b345853918b9300bdde19010d29bf66973497de7.tar.xz
Check against sender rather than event_id
Diffstat (limited to '')
-rw-r--r--tests/test_state.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_state.py b/tests/test_state.py
index 5845358754..04c4439183 100644
--- a/tests/test_state.py
+++ b/tests/test_state.py
@@ -35,7 +35,7 @@ def create_event(name=None, type=None, state_key=None, depth=2, event_id=None,
 
     if not event_id:
         _next_event_id += 1
-        event_id = str(_next_event_id)
+        event_id = "$%s:test" % (_next_event_id,)
 
     if not name:
         if state_key is not None: