mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
mispell fixes. (#3100)
This commit is contained in:
parent
31f2db6880
commit
63f1b4fdf4
@ -106,6 +106,6 @@ func TestParseInvalidCertificateChain(t *testing.T) {
|
|||||||
|
|
||||||
// then
|
// then
|
||||||
if err == nil {
|
if err == nil {
|
||||||
t.Fatalf("Expected error but none occured")
|
t.Fatalf("Expected error but none occurred")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -369,7 +369,7 @@ func loadListenerConfig(bucket string, objAPI ObjectLayer) ([]listenerConfig, er
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
// 'notification.xml' not found return
|
// 'notification.xml' not found return
|
||||||
// 'errNoSuchNotifications'. This is default when no
|
// 'errNoSuchNotifications'. This is default when no
|
||||||
// bucket listners are found on the bucket.
|
// bucket listeners are found on the bucket.
|
||||||
switch err.(type) {
|
switch err.(type) {
|
||||||
case ObjectNotFound:
|
case ObjectNotFound:
|
||||||
return nil, errNoSuchNotifications
|
return nil, errNoSuchNotifications
|
||||||
|
@ -440,7 +440,7 @@ func (fs fsObjects) PutObject(bucket string, object string, size int64, data io.
|
|||||||
// get a random ID for lock instrumentation.
|
// get a random ID for lock instrumentation.
|
||||||
opsID := getOpsID()
|
opsID := getOpsID()
|
||||||
|
|
||||||
// Lock the object before comitting the object.
|
// Lock the object before committing the object.
|
||||||
nsMutex.RLock(bucket, object, opsID)
|
nsMutex.RLock(bucket, object, opsID)
|
||||||
defer nsMutex.RUnlock(bucket, object, opsID)
|
defer nsMutex.RUnlock(bucket, object, opsID)
|
||||||
|
|
||||||
|
@ -1349,7 +1349,7 @@ func testAPICompleteMultipartHandler(obj ObjectLayer, instanceType, bucketName s
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
// on successfull complete multipart operation the s3MD5 for the parts uploaded will be returned.
|
// on successful complete multipart operation the s3MD5 for the parts uploaded will be returned.
|
||||||
s3MD5, err := getCompleteMultipartMD5(inputParts[3].parts...)
|
s3MD5, err := getCompleteMultipartMD5(inputParts[3].parts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("Obtaining S3MD5 failed")
|
t.Fatalf("Obtaining S3MD5 failed")
|
||||||
@ -2141,7 +2141,7 @@ func testAPIPutObjectPartHandler(obj ObjectLayer, instanceType, bucketName strin
|
|||||||
t.Fatalf("%s, Failed to unmarshal error response from upload part request \"%s\"/\"%s\": <ERROR> %v.",
|
t.Fatalf("%s, Failed to unmarshal error response from upload part request \"%s\"/\"%s\": <ERROR> %v.",
|
||||||
reqType, bucketName, test.objectName, err)
|
reqType, bucketName, test.objectName, err)
|
||||||
}
|
}
|
||||||
// Validate whether the error has occured for the expected reason.
|
// Validate whether the error has occurred for the expected reason.
|
||||||
if test.expectedAPIError.Code != errXML.Code {
|
if test.expectedAPIError.Code != errXML.Code {
|
||||||
t.Errorf("%s, Expected to fail with error \"%s\", but received \"%s\".",
|
t.Errorf("%s, Expected to fail with error \"%s\", but received \"%s\".",
|
||||||
reqType, test.expectedAPIError.Code, errXML.Code)
|
reqType, test.expectedAPIError.Code, errXML.Code)
|
||||||
@ -2421,7 +2421,7 @@ func testAPIListObjectPartsHandler(obj ObjectLayer, instanceType, bucketName str
|
|||||||
t.Fatalf("%s, Failed to unmarshal error response from list object partsest %s/%s: <ERROR> %v",
|
t.Fatalf("%s, Failed to unmarshal error response from list object partsest %s/%s: <ERROR> %v",
|
||||||
reqType, bucketName, testObject, err)
|
reqType, bucketName, testObject, err)
|
||||||
}
|
}
|
||||||
// Validate whether the error has occured for the expected reason.
|
// Validate whether the error has occurred for the expected reason.
|
||||||
if test.expectedErr.Code != errXML.Code {
|
if test.expectedErr.Code != errXML.Code {
|
||||||
t.Errorf("%s, Expected to fail with %s but received %s",
|
t.Errorf("%s, Expected to fail with %s but received %s",
|
||||||
reqType, test.expectedErr.Code, errXML.Code)
|
reqType, test.expectedErr.Code, errXML.Code)
|
||||||
|
Loading…
Reference in New Issue
Block a user