mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
Comment: Typo Fix (#7958)
This commit is contained in:
parent
8b5e6e338c
commit
c5faba55c1
@ -1177,7 +1177,7 @@ func (s *TestSuiteCommon) TestPutObject(c *check) {
|
|||||||
c.Assert(response.StatusCode, http.StatusOK)
|
c.Assert(response.StatusCode, http.StatusOK)
|
||||||
c.Assert(response.ContentLength, int64(len([]byte("hello world"))))
|
c.Assert(response.ContentLength, int64(len([]byte("hello world"))))
|
||||||
var buffer2 bytes.Buffer
|
var buffer2 bytes.Buffer
|
||||||
// retrive the contents of response body.
|
// retrieve the contents of response body.
|
||||||
n, err := io.Copy(&buffer2, response.Body)
|
n, err := io.Copy(&buffer2, response.Body)
|
||||||
c.Assert(err, nil)
|
c.Assert(err, nil)
|
||||||
c.Assert(n, int64(len([]byte("hello world"))))
|
c.Assert(n, int64(len([]byte("hello world"))))
|
||||||
@ -1461,7 +1461,7 @@ func (s *TestSuiteCommon) TestHeadOnObjectLastModified(c *check) {
|
|||||||
// verify the status of the HTTP response.
|
// verify the status of the HTTP response.
|
||||||
c.Assert(response.StatusCode, http.StatusOK)
|
c.Assert(response.StatusCode, http.StatusOK)
|
||||||
|
|
||||||
// retrive the info of last modification time of the object from the response header.
|
// retrieve the info of last modification time of the object from the response header.
|
||||||
lastModified := response.Header.Get("Last-Modified")
|
lastModified := response.Header.Get("Last-Modified")
|
||||||
// Parse it into time.Time structure.
|
// Parse it into time.Time structure.
|
||||||
t, err := time.Parse(http.TimeFormat, lastModified)
|
t, err := time.Parse(http.TimeFormat, lastModified)
|
||||||
|
@ -312,7 +312,7 @@ func testSelectObject(s3Client *s3.S3) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test comma field seperator
|
// Test comma field separator
|
||||||
inputCsv1 := `year,gender,ethnicity,firstname,count,rank
|
inputCsv1 := `year,gender,ethnicity,firstname,count,rank
|
||||||
2011,FEMALE,ASIAN AND PACIFIC ISLANDER,SOPHIA,119,1
|
2011,FEMALE,ASIAN AND PACIFIC ISLANDER,SOPHIA,119,1
|
||||||
2011,FEMALE,ASIAN AND PACIFIC ISLANDER,CHLOE,106,2
|
2011,FEMALE,ASIAN AND PACIFIC ISLANDER,CHLOE,106,2
|
||||||
@ -392,7 +392,7 @@ func testSelectObject(s3Client *s3.S3) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test unicode field seperator
|
// Test unicode field separator
|
||||||
inputCsv2 := `"year"╦"gender"╦"ethnicity"╦"firstname"╦"count"╦"rank"
|
inputCsv2 := `"year"╦"gender"╦"ethnicity"╦"firstname"╦"count"╦"rank"
|
||||||
"2011"╦"FEMALE"╦"ASIAN AND PACIFIC ISLANDER"╦"SOPHIA"╦"119"╦"1"
|
"2011"╦"FEMALE"╦"ASIAN AND PACIFIC ISLANDER"╦"SOPHIA"╦"119"╦"1"
|
||||||
"2011"╦"FEMALE"╦"ASIAN AND PACIFIC ISLANDER"╦"CHLOE"╦"106"╦"2"
|
"2011"╦"FEMALE"╦"ASIAN AND PACIFIC ISLANDER"╦"CHLOE"╦"106"╦"2"
|
||||||
|
Loading…
Reference in New Issue
Block a user