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: fix seek test on http impl #5971

Merged
merged 1 commit into from
Feb 6, 2019
Merged

Conversation

magik6k
Copy link
Member

@magik6k magik6k commented Feb 5, 2019

No description provided.

License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
@magik6k magik6k added the topic/core-api Topic core-api label Feb 5, 2019
@magik6k magik6k requested a review from Kubuxu as a code owner February 5, 2019 19:21
@ghost ghost assigned magik6k Feb 5, 2019
@ghost ghost added the status/in-progress In progress label Feb 5, 2019
@@ -967,7 +975,7 @@ func (tp *provider) TestGetSeek(t *testing.T) {
}

orig := make([]byte, dataSize)
if _, err := f.Read(orig); err != nil {
if _, err := io.ReadFull(f, orig); err != nil {
Copy link
Member Author

Choose a reason for hiding this comment

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

Need this because http reader reads data in 4k chunks

@Stebalien Stebalien merged commit df373ca into master Feb 6, 2019
@ghost ghost removed the status/in-progress In progress label Feb 6, 2019
@Stebalien Stebalien deleted the fix/coreapi-seek-test branch February 6, 2019 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/core-api Topic core-api
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants