From 3243ce2a905a791dab2ce0ffda91f594726f3b3a Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 14 Jan 2022 18:15:46 +0100 Subject: [PATCH] fix unit test that failed after it finished crashing the runner on node 16 --- src/matrix/room/timeline/Timeline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/room/timeline/Timeline.js b/src/matrix/room/timeline/Timeline.js index ef3c3fba..67ce9ce2 100644 --- a/src/matrix/room/timeline/Timeline.js +++ b/src/matrix/room/timeline/Timeline.js @@ -742,7 +742,7 @@ export function tests() { const entryA = new EventEntry({ event: withTextBody("foo", createEvent("m.room.message", "event_id_1", alice)) }); const entryB = new EventEntry({ event: withReply("event_id_1", createEvent("m.room.message", "event_id_2", bob)), eventIndex: 2 }); await timeline.load(new User(alice), "join", new NullLogItem()); - timeline.entries.subscribe({ onAdd: () => null, }); + timeline.entries.subscribe({ onAdd: () => null, onUpdate: () => null}); timeline.addEntries([entryA, entryB]); assert.deepEqual(entryB.contextEntry, entryA); },