From 149c45602ff4ba6ba98fcc44c48a9894ebc8c9bc Mon Sep 17 00:00:00 2001 From: achingbrain Date: Tue, 27 Jun 2023 18:00:21 +0200 Subject: [PATCH] chore: fix pubsub tests --- packages/pubsub/package.json | 1 - packages/pubsub/test/utils/index.ts | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/pubsub/package.json b/packages/pubsub/package.json index 255e8a3a87..ad5047b3b3 100644 --- a/packages/pubsub/package.json +++ b/packages/pubsub/package.json @@ -92,7 +92,6 @@ "@libp2p/logger": "^2.0.0", "@libp2p/peer-collections": "^3.0.0", "@libp2p/peer-id": "^2.0.0", - "@libp2p/topology": "^4.0.0", "abortable-iterator": "^5.0.1", "it-length-prefixed": "^9.0.1", "it-pipe": "^3.0.1", diff --git a/packages/pubsub/test/utils/index.ts b/packages/pubsub/test/utils/index.ts index 5181d7258f..4b112f9337 100644 --- a/packages/pubsub/test/utils/index.ts +++ b/packages/pubsub/test/utils/index.ts @@ -134,18 +134,14 @@ export const ConnectionPair = (): [Connection, Connection] => { // @ts-expect-error incomplete implementation newStream: async (protocol: string[]) => Promise.resolve({ ...d0, - stat: { - protocol: protocol[0] - } + protocol: protocol[0] }) }, { // @ts-expect-error incomplete implementation newStream: async (protocol: string[]) => Promise.resolve({ ...d1, - stat: { - protocol: protocol[0] - } + protocol: protocol[0] }) } ]