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

Commit

Permalink
fix: fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Oct 17, 2019
1 parent 95d01d2 commit b8dd999
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions test/cli/ls.js
Expand Up @@ -76,16 +76,10 @@ describe('ls', () => runOnAndOff((thing) => {
})

it('prints nothing for non-existant hashes', async function () {
if (thing.on) {
// If the daemon is on, ls should search until it hits a timeout
await Promise.race([
ipfs('ls QmYmW4HiZhotsoSqnv2o1oSssvkRM8b9RweBoH7ao5nki2'),
delay(4000)
])
} else {
// If the daemon is off, ls should fail
await ipfs.fail('ls QmYmW4HiZhotsoSqnv2o1oSssvkRM8b9RweBoH7ao5nki2')
}
await Promise.race([
ipfs.fail('ls QmYmW4HiZhotsoSqnv2o1oSssvkRM8b9RweBoH7ao5nki2'),
delay(4000)
])
})

it('adds a header, -v', function () {
Expand Down

0 comments on commit b8dd999

Please sign in to comment.