Skip to content

Commit

Permalink
Use GCS compatible Content-Language in functional tests (#998)
Browse files Browse the repository at this point in the history
  • Loading branch information
wd256 authored and kannappanr committed Jun 21, 2018
1 parent 699c904 commit 3adf3e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions functional_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ func testPutObjectWithContentLanguage() {

data := bytes.Repeat([]byte("a"), int(0))
n, err := c.PutObject(bucketName, objectName, bytes.NewReader(data), int64(0), minio.PutObjectOptions{
ContentLanguage: "en-US",
ContentLanguage: "en",
})
if err != nil {
logError(testName, function, args, startTime, "", "PutObject failed", err)
Expand All @@ -769,8 +769,8 @@ func testPutObjectWithContentLanguage() {
return
}

if objInfo.Metadata.Get("Content-Language") != "en-US" {
logError(testName, function, args, startTime, "", "Expected content-language 'en-US' doesn't match with StatObject return value", err)
if objInfo.Metadata.Get("Content-Language") != "en" {
logError(testName, function, args, startTime, "", "Expected content-language 'en' doesn't match with StatObject return value", err)
return
}

Expand Down

0 comments on commit 3adf3e3

Please sign in to comment.