Skip to content

Commit 149c456

Browse files
committed
chore: fix pubsub tests
1 parent c5b2af1 commit 149c456

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

packages/pubsub/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@
9292
"@libp2p/logger": "^2.0.0",
9393
"@libp2p/peer-collections": "^3.0.0",
9494
"@libp2p/peer-id": "^2.0.0",
95-
"@libp2p/topology": "^4.0.0",
9695
"abortable-iterator": "^5.0.1",
9796
"it-length-prefixed": "^9.0.1",
9897
"it-pipe": "^3.0.1",

packages/pubsub/test/utils/index.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,18 +134,14 @@ export const ConnectionPair = (): [Connection, Connection] => {
134134
// @ts-expect-error incomplete implementation
135135
newStream: async (protocol: string[]) => Promise.resolve({
136136
...d0,
137-
stat: {
138-
protocol: protocol[0]
139-
}
137+
protocol: protocol[0]
140138
})
141139
},
142140
{
143141
// @ts-expect-error incomplete implementation
144142
newStream: async (protocol: string[]) => Promise.resolve({
145143
...d1,
146-
stat: {
147-
protocol: protocol[0]
148-
}
144+
protocol: protocol[0]
149145
})
150146
}
151147
]

0 commit comments

Comments
 (0)