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

Commit b8dd999

Browse files
committed
fix: fix failing test
1 parent 95d01d2 commit b8dd999

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

test/cli/ls.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,10 @@ describe('ls', () => runOnAndOff((thing) => {
7676
})
7777

7878
it('prints nothing for non-existant hashes', async function () {
79-
if (thing.on) {
80-
// If the daemon is on, ls should search until it hits a timeout
81-
await Promise.race([
82-
ipfs('ls QmYmW4HiZhotsoSqnv2o1oSssvkRM8b9RweBoH7ao5nki2'),
83-
delay(4000)
84-
])
85-
} else {
86-
// If the daemon is off, ls should fail
87-
await ipfs.fail('ls QmYmW4HiZhotsoSqnv2o1oSssvkRM8b9RweBoH7ao5nki2')
88-
}
79+
await Promise.race([
80+
ipfs.fail('ls QmYmW4HiZhotsoSqnv2o1oSssvkRM8b9RweBoH7ao5nki2'),
81+
delay(4000)
82+
])
8983
})
9084

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

0 commit comments

Comments
 (0)