Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 5cc8757

Browse files
dryajovdaviddias
authored andcommitted
test: peers should not throw after disconnect (#1012)
1 parent d1472ee commit 5cc8757

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/cli/swarm.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,11 @@ describe('swarm', () => {
7878
)
7979
})
8080
})
81+
82+
it('`peers` should not throw after `disconnect`', () => {
83+
return ipfsA('swarm peers').then((out) => {
84+
expect(out).to.be.empty()
85+
})
86+
})
8187
})
8288
})

0 commit comments

Comments
 (0)