Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

files interop tests currently failing #50

Closed
@alanshaw

Description

@alanshaw

Using js-ipfs master we're getting failures reading files and directories that do not exist. The error message has changed.

 1) files
       returns an error when reading non-existent files:

      AssertionError: expected { Object (message, code) } to deeply equal { Object (message, code) }
      + expected - actual

       {
         "code": 0
      -  "message": "file does not exist"
      +  "message": "/i-do-not-exist-0.7005556072496701 does not exist"
       }
      
      at results.forEach.res (test/files.js:93:50)
      at Array.forEach (<anonymous>)
      at Promise.all.then.results (test/files.js:93:15)
      at process._tickCallback (internal/process/next_tick.js:68:7)

  2) files
       returns an error when writing deeply nested files and the parents do not exist:

      AssertionError: expected { Object (message, code) } to deeply equal { Object (message, code) }
      + expected - actual

       {
         "code": 0
      -  "message": "file does not exist"
      +  "message": "directory does not exist"
       }
      
      at results.forEach.res (test/files.js:93:50)
      at Array.forEach (<anonymous>)
      at Promise.all.then.results (test/files.js:93:15)
      at process._tickCallback (internal/process/next_tick.js:68:7)

cc @achingbrain

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High: Likely tackled by core team if no one steps upkind/bugA bug in existing code (including security flaws)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions