diff --git a/test/sync.test.js b/test/sync.test.js index a25391f..b3d2190 100644 --- a/test/sync.test.js +++ b/test/sync.test.js @@ -701,7 +701,7 @@ describe('Sync protocol', function () { let err = null const onError = (error) => { - err = error + (!err) && (err = error) } sync1 = await Sync({ ipfs: ipfs1, log: log1, timeout: timeoutTime })