-
Notifications
You must be signed in to change notification settings - Fork 647
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
Conversation
functional_tests.go
Outdated
@@ -45,7 +45,8 @@ import ( | |||
) | |||
|
|||
const ( | |||
sixtyFiveMiB = 1024 * 1024 * 65 // 65MiB | |||
sixtyFiveMiB = 1024 * 1024 * 65 // 65MiB | |||
thirtyThreeKB = 1024 * 33 //33KB |
There was a problem hiding this comment.
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
?
d49ea79
to
a878a25
Compare
There was a problem hiding this 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
a878a25
to
e96ffff
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Fixed the issue by using the size of the 33KB file instead of random size.
Fixes #809