From 464041c26767412d58348148dd31c804aae80f6e Mon Sep 17 00:00:00 2001 From: Julien Malard-Adam Date: Sun, 16 Feb 2025 18:23:40 +0100 Subject: [PATCH] Update sync.test.js --- test/sync.test.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/test/sync.test.js b/test/sync.test.js index 9f645dc..844821c 100644 --- a/test/sync.test.js +++ b/test/sync.test.js @@ -698,11 +698,6 @@ describe('Sync protocol', function () { }) it('does not crash when no listeners are attached to the `error` event on `Sync.events`', async () => { - let synced = null - - const onSynced = (data) => { - synced = data - } sync1 = await Sync({ ipfs: ipfs1, log: log1, timeout: timeoutTime }) sync2 = await Sync({ ipfs: ipfs2, log: log2, start: false, onSynced, timeout: timeoutTime }) @@ -710,10 +705,6 @@ describe('Sync protocol', function () { await log1.append('hello1') await sync2.start() - - await waitFor(() => !!synced, () => true) - - notStrictEqual(synced, null) }) })