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

Conversation

@alanshaw
Copy link
Contributor

@alanshaw alanshaw commented Sep 4, 2017

The builder mutates the params you give it so you can no longer use the original to compare with the output.

The fix was to clone the input before passing to the builder. I would argue that it's mildly unexpected for the builder to mutate the input objects...perhaps the builder should be taking a clone of the inputs for it's own purposes? One for another PR?

Also, sorry sorry sorry - never change things after you run the tests and think "it'll be fine".

fixes #181

@alanshaw alanshaw mentioned this pull request Sep 4, 2017
@daviddias
Copy link
Contributor

Thank you @alanshaw :)

@daviddias daviddias merged commit ca14e67 into ipfs-inactive:master Sep 4, 2017
@alanshaw alanshaw deleted the fix-hash-alg-test branch September 4, 2017 13:52
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.

New test added fails

2 participants