Update sync.test.js

This commit is contained in:
Julien Malard-Adam 2025-02-16 18:23:40 +01:00 committed by GitHub
parent 062aa53823
commit 464041c267
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
})
})