Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 3f7a775

Browse files
achingbrainalanshaw
authored andcommitted
test: make files.ls results ordering consistent (#342)
Previously we'd get files in different orders between `files.ls()` and `files.ls({long: true})` due to a bug in `go-ipfs` (see ipfs/kubo#5181) Since this has been resolved we can now expect consistent ordering.
1 parent ef72fa9 commit 3f7a775

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/src/files/ls.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ module.exports = (createCommon, options) => {
5454
ipfs.files.ls(testDir, (err, info) => {
5555
expect(err).to.not.exist()
5656
expect(info).to.eql([
57-
{ name: 'b', type: 0, size: 0, hash: '' },
58-
{ name: 'lv1', type: 0, size: 0, hash: '' }
57+
{ name: 'lv1', type: 0, size: 0, hash: '' },
58+
{ name: 'b', type: 0, size: 0, hash: '' }
5959
])
6060
done()
6161
})

0 commit comments

Comments
 (0)