mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
Lower object name length when running in docker to support aufs. (#4879)
This commit is contained in:
parent
ff8e2b5b4f
commit
9e9c7b4f22
@ -1254,6 +1254,9 @@ func (s *TestSuiteCommon) TestPutObjectLongName(c *C) {
|
||||
buffer := bytes.NewReader([]byte("hello world"))
|
||||
// make long object name.
|
||||
longObjName := fmt.Sprintf("%0255d/%0255d/%0255d", 1, 1, 1)
|
||||
if IsDocker() || IsKubernetes() {
|
||||
longObjName = fmt.Sprintf("%0242d/%0242d/%0242d", 1, 1, 1)
|
||||
}
|
||||
// create new HTTP request to insert the object.
|
||||
request, err = newTestSignedRequest("PUT", getPutObjectURL(s.endPoint, bucketName, longObjName),
|
||||
int64(buffer.Len()), buffer, s.accessKey, s.secretKey, s.signer)
|
||||
|
Loading…
Reference in New Issue
Block a user