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

fix ipfs files add CLI command. #312

Merged
merged 2 commits into from
Jun 7, 2016
Merged

Conversation

hackergrrl
Copy link
Contributor

  • fixes 'files add' CLI to work with createAddStream changes
  • adds tests

@jbenet jbenet added the status/in-progress In progress label Jun 7, 2016
@daviddias daviddias changed the title Implement ipfs.files.add CLI command. fix ipfs files add CLI command. Jun 7, 2016
i.end()
}
i.once('end', () => {
return
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't it be process.exit(0) ?

@daviddias
Copy link
Member

Seems that there is a racing condition on add

https://travis-ci.org/ipfs/js-ipfs/jobs/135762823#L4512-L4516

      Uncaught AssertionError: expected 'QmZ25UfTqXGz9RsEJFg7HUAuBcmfx5dQZDXQd2QEZ8Kj74' to equal 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP'
      + expected - actual
      -QmZ25UfTqXGz9RsEJFg7HUAuBcmfx5dQZDXQd2QEZ8Kj74
      +QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP

That come from the tests generated earlier

@daviddias
Copy link
Member

Also see #306 (comment), related to #312 (comment)

@daviddias daviddias merged commit bf62c28 into ipfs:master Jun 7, 2016
@jbenet jbenet removed the status/in-progress In progress label Jun 7, 2016
@daviddias
Copy link
Member

Thank you :)

@hackergrrl
Copy link
Contributor Author

Woah, fast merge! I didn't get to squash or address you comments. ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants