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

fix dataStream reader and test bugs #339

Merged
merged 2 commits into from
Aug 15, 2018
Merged

Conversation

jeffvance
Copy link
Contributor

@jeffvance jeffvance commented Aug 15, 2018

fixes #324
One of the dataStream unit tests called constructReaders twice per dataStream. Instead, that test now tests that the number of readers in the Readers slice matches the expected size.
Also, constructReaders now exits its for loop once a qcow2 file header is detected. Previously, the loop did an extra (unnecessary) iteration resulting in an additional multi-reader being appended to the Readers slice.

@copejon @screeley44 @mhenriks

@jeffvance jeffvance changed the title fix datastream rdr and test bugs fix dataStream reader and test bugs Aug 15, 2018
Copy link
Member

@mhenriks mhenriks left a comment

Choose a reason for hiding this comment

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

LGTM - my streaming qcow conversion PR is affected by this. Let's get this merged first and I'll do a rebase.

@screeley44
Copy link
Contributor

lgtm

@screeley44 screeley44 merged commit b8d8111 into kubevirt:master Aug 15, 2018
@jeffvance jeffvance deleted the multi-r branch August 28, 2018 00:53
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.

make sure the datastream reader stack does not contain an extra multi-reader
3 participants