Skip to content

Commit

Permalink
Fix and re-enable TestFS.
Browse files Browse the repository at this point in the history
  • Loading branch information
lthibault committed Aug 6, 2024
1 parent 19e974c commit 5e25d47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion system/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,9 @@ func (n ipfsNode) ReadDir(max int) (entries []fs.DirEntry, err error) {
// If we get here, it's because the iterator stopped. It either
// failed or is exhausted. Any other error has already caused us
// to return.
if err = iter.Err(); err == nil {
if iter.Err() != nil {
err = iter.Err() // failed
} else if max >= 0 {
err = io.EOF // exhausted
}

Expand Down
2 changes: 0 additions & 2 deletions system/fs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import (
func TestFS(t *testing.T) {
t.Parallel()

t.Skip("TODO: re-enable and make sure these pass")

root, err := path.NewPath("/ipfs/QmQuTsZYyFSVXD8r6yfWyJyJ5xhzV8wkqy9wWuTeoccDtW")
require.NoError(t, err)

Expand Down

0 comments on commit 5e25d47

Please sign in to comment.