-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
088016c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I thought that it would be wasteful to write another 100M file on disk and then compare it with another one, when we could just use shasum on both and compare the sums.
(Also "ipfs cat succeeds" was already tested above on a small file.)
Nit pick: now if you compare both files without using shasum, maybe using shasum again on "actual" is not needed. (It is used before on mountdir/bigfile.)
088016c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also below your changes there is:
If we don't care about writing another 100M file and compare with the original, we should probably do it there too.
088016c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it is wasteful. I added it because i was debugging an error (i wanted to see what the files looked like). I think maybe the right thing is to have it commented out (or skipped by default)
And, @chriscool, you tests have saved the world multiple times :) 👍