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 for functional tests using random file sizes with static files (#809) #810

Merged
merged 1 commit into from
Sep 7, 2017

Conversation

kannappanr
Copy link
Collaborator

Fixed the issue by using the size of the 33KB file instead of random size.

Fixes #809

@@ -45,7 +45,8 @@ import (
)

const (
sixtyFiveMiB = 1024 * 1024 * 65 // 65MiB
sixtyFiveMiB = 1024 * 1024 * 65 // 65MiB
thirtyThreeKB = 1024 * 33 //33KB
Copy link
Member

Choose a reason for hiding this comment

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

How about using humanize.MiByte and humanize.KiByte?

Copy link
Member

@harshavardhana harshavardhana left a comment

Choose a reason for hiding this comment

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

Commit message can be a bit more descriptive like

tests: Use consistent filesize for all test data.

Use the same filesize values for both the random 
data reader and corresponding static files for consistent functional test behavior across various testing env. 

Fixes #809

Use the same filesize value for both the random data reader
and corresponding static files for consistent functional test
behavior across various testing env.

Fixes minio#809
Copy link
Contributor

@poornas poornas left a comment

Choose a reason for hiding this comment

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

LGTM.

@deekoder deekoder merged commit cd7c00d into minio:master Sep 7, 2017
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.

6 participants