Skip to content

Commit 1ca7be6

Browse files
committed
fix: update expected error name
1 parent acb7556 commit 1ca7be6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/libp2p/test/core/random-walk.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ describe('random-walk', () => {
229229
await expect(drain(randomWalk.walk({
230230
signal: AbortSignal.timeout(10)
231231
}))).to.eventually.be.rejected
232-
.with.property('name', 'AbortError')
232+
.with.property('name', 'TimeoutError')
233233
})
234234

235235
it('should allow an impatient consumer to abort a slow query but other consumers to receive values', async () => {
@@ -252,7 +252,7 @@ describe('random-walk', () => {
252252
])
253253

254254
expect(results).to.have.nested.property('[0].status', 'rejected')
255-
expect(results).to.have.nested.property('[0].reason.name', 'AbortError')
255+
expect(results).to.have.nested.property('[0].reason.name', 'TimeoutError')
256256

257257
expect(results).to.have.nested.property('[1].status', 'fulfilled')
258258
expect(results).to.have.nested.property('[1].value').with.lengthOf(2)

0 commit comments

Comments
 (0)