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

Commit

Permalink
test: peers should not throw after disconnect (#1012)
Browse files Browse the repository at this point in the history
  • Loading branch information
dryajov authored and daviddias committed Sep 8, 2017
1 parent d1472ee commit 5cc8757
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/cli/swarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,11 @@ describe('swarm', () => {
)
})
})

it('`peers` should not throw after `disconnect`', () => {
return ipfsA('swarm peers').then((out) => {
expect(out).to.be.empty()
})
})
})
})

0 comments on commit 5cc8757

Please sign in to comment.