From 92af2a6b2736f5ff10ef59eaaf909af19baa8c13 Mon Sep 17 00:00:00 2001 From: Maximilian Seifert Date: Wed, 27 Mar 2019 21:20:45 +0100 Subject: [PATCH] Alter test data to pass sanitation checks Signed-off-by: Maximilian Seifert --- syncapi/storage/output_room_events_table_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/syncapi/storage/output_room_events_table_test.go b/syncapi/storage/output_room_events_table_test.go index 0c4636930..a031ac969 100644 --- a/syncapi/storage/output_room_events_table_test.go +++ b/syncapi/storage/output_room_events_table_test.go @@ -37,7 +37,7 @@ func init() { } } -const testEventID = "test-event-id" +const testEventID = "$test-event-id:test-domain.example.com" func Test_sanityCheckOutputRoomEvents(t *testing.T) { db, err := NewSyncServerDatabase(dataSource) @@ -67,7 +67,6 @@ func TestSyncServerDatabase_selectEventsWithEventIDs(t *testing.T) { assert.Condition(t, func() bool { return len(events) > 0 }) - } func insertTestEvent(t *testing.T, db *SyncServerDatabase) { @@ -76,13 +75,14 @@ func insertTestEvent(t *testing.T, db *SyncServerDatabase) { keyBytes := []byte("1122334455667788112233445566778811223344556677881122334455667788") eventBuilder := gomatrixserverlib.EventBuilder{ - RoomID: "test-room-id", + RoomID: "!test_room_id:test-domain.example.com", Content: []byte(`{"RawContent": "test-raw-content"}`), + Sender: "@test-user:test-domain.example.com", } event, err := eventBuilder.Build( testEventID, time.Now(), - "test-server-name", + "test-domain.example.com", "test-key-id", keyBytes)