Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add tests for downloading empty file/dir to fs #70

Merged
merged 2 commits into from
Jul 11, 2016

Conversation

joehand
Copy link
Contributor

@joehand joehand commented Jun 16, 2016

Adds (currently failing) tests for downloading empty file/directory to file system. #28

@okdistribute
Copy link
Contributor

+1 nice

var drive = hyperdrive(memdb())
var driveClone = hyperdrive(memdb())
var tmp = path.join(os.tmpdir(), 'hyperdrive-test')
mkdirp.sync(tmp)
Copy link
Contributor

Choose a reason for hiding this comment

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

we don't need mkdirp for that, os.tmpdir should already exist

@juliangruber
Copy link
Contributor

juliangruber commented Jun 17, 2016

after the comments, +1, great work!

@joehand joehand force-pushed the add-empty-fs-test branch 2 times, most recently from 5ecb112 to 84b86e2 Compare June 17, 2016 18:26
@joehand
Copy link
Contributor Author

joehand commented Jun 17, 2016

Thanks @juliangruber, updated with your comments.

@juliangruber
Copy link
Contributor

+1!

@clkao
Copy link
Contributor

clkao commented Jul 8, 2016

Do we want to make this as todo test and merge? It seems we need to either have raf or additional storage api to support mkdir.

@clkao
Copy link
Contributor

clkao commented Jul 8, 2016

well marking as todo requires tape-testing/tape#254

@mafintosh
Copy link
Contributor

@clkao use tape.skip and add a todo comment for now. mkdir will be a hyperdrive option where you can pass a mkdir handler in hyperdrive

@joehand
Copy link
Contributor Author

joehand commented Jul 8, 2016

@mafintosh changed the tests to skip.

@mafintosh mafintosh merged commit 6defeb4 into holepunchto:master Jul 11, 2016
@joehand joehand deleted the add-empty-fs-test branch July 11, 2016 22:34
@clkao clkao mentioned this pull request Jul 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants