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

fix(tests): loosen assertion for bitswap.stat test #1404

Merged
merged 2 commits into from
Jun 21, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/cli/bitswap.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ describe('bitswap', () => runOn((thing) => {
this.timeout(20 * 1000)

return ipfs('bitswap stat').then((out) => {
expect(out).to.be.eql([
expect(out).to.include([
'bitswap status',
' blocks received: 0',
' dup blocks received: 0',
' dup data received: 0B',
' wantlist [1 keys]',
` ${key}`,
' partners [0]',
' '
].join('\n') + '\n')
// We sometimes pick up partners while the tests run so our assertion ends here
' partners'
].join('\n'))
})
})

Expand Down