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

coreapi: add some seeker tests #5934

Merged
merged 1 commit into from
Jan 30, 2019
Merged

coreapi: add some seeker tests #5934

merged 1 commit into from
Jan 30, 2019

Conversation

magik6k
Copy link
Member

@magik6k magik6k commented Jan 21, 2019

This tests dagreader in go-unixfs/io, and it turns out it's currently broken in 2 ways:

  • When seeking near end of the file and the reading into buffer larger than the file, Read seems to read the data, but incorrectly returns io.EOF (this is valid behaviour, just not consistent across readers)

  • When seeking with io.SeekEnd, DagReader incorrectly inverts the offset.

@magik6k magik6k added kind/test Testing work status/blocked Unable to be worked further until needs are met topic/core-api Topic core-api labels Jan 21, 2019
@magik6k magik6k requested a review from Kubuxu as a code owner January 21, 2019 11:44
@ghost ghost assigned magik6k Jan 21, 2019
@ghost ghost added the status/in-progress In progress label Jan 21, 2019
@magik6k magik6k force-pushed the tests/coreapi-seek branch 2 times, most recently from f7ac914 to 42050a0 Compare January 21, 2019 20:46
@Stebalien Stebalien removed the status/blocked Unable to be worked further until needs are met label Jan 30, 2019
@ghost ghost assigned Stebalien Jan 30, 2019
@Stebalien
Copy link
Member

Something still appears broken here.

License: MIT
Signed-off-by: Łukasz Magiera <[email protected]>
@magik6k
Copy link
Member Author

magik6k commented Jan 30, 2019

Test incorrectly handled io.EOF, should now be fixed

@Stebalien Stebalien merged commit 95a7370 into master Jan 30, 2019
@ghost ghost removed the status/in-progress In progress label Jan 30, 2019
@hacdias hacdias deleted the tests/coreapi-seek branch May 9, 2023 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/test Testing work topic/core-api Topic core-api
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants