Skip to content

Commit 49bde61

Browse files
More test fixes
1 parent 1b2d3eb commit 49bde61

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/firestore/test/unit/specs/spec_test_runner.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,10 @@ abstract class TestRunner {
286286
this.syncEngine = onlineComponentProvider.syncEngine;
287287
this.eventManager = onlineComponentProvider.eventManager;
288288

289-
this.eventManager.subscribe(
290-
syncEngineListen.bind(null, this.syncEngine),
291-
syncEngineUnlisten.bind(null, this.syncEngine)
289+
this.eventManager.onListen = syncEngineListen.bind(null, this.syncEngine);
290+
this.eventManager.onUnlisten = syncEngineUnlisten.bind(
291+
null,
292+
this.syncEngine
292293
);
293294

294295
await this.persistence.setDatabaseDeletedListener(async () => {

0 commit comments

Comments
 (0)