From 71aa34d349bbc01060a02bfc5ff65a71a7a2ddc8 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Fri, 25 Oct 2024 07:26:14 +0100 Subject: [PATCH] chore: pr comments --- packages/kad-dht/test/providers.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/kad-dht/test/providers.spec.ts b/packages/kad-dht/test/providers.spec.ts index c4719e4e1d..317f2d0465 100644 --- a/packages/kad-dht/test/providers.spec.ts +++ b/packages/kad-dht/test/providers.spec.ts @@ -39,7 +39,7 @@ describe('providers', () => { expect(ids.has(peers[0].toString())).to.equal(true) }) - it('should duplicate multiple adds of same provider', async () => { + it('should deduplicate multiple adds of same provider', async () => { providers = new Providers({ datastore: new MemoryDatastore(), logger: defaultLogger() @@ -104,6 +104,6 @@ describe('providers', () => { const cid = CID.parse('QmZ8eiDPqQqWR17EPxiwCDgrKPVhCHLcyn6xSCNpFAdAZb') const peerId = peerIdFromString('QmZ8eiDPqQqWR17EPxiwCDgrKPVhCHLcyn6xSCNpFAdAZb') - await providers.removeProvider(cid, peerId) + await expect(providers.removeProvider(cid, peerId)).to.not.be.rejected() }) })