Cleanup: mispell fixes

This commit is contained in:
karthic rao 2016-05-07 01:02:44 +05:30 committed by Harshavardhana
parent 0b4bbe6d9e
commit 20ca65c793
5 changed files with 8 additions and 8 deletions

View File

@ -485,7 +485,7 @@ func TestCheckBucketPolicyResources(t *testing.T) {
// should result in ErrMalformedPolicy // should result in ErrMalformedPolicy
{Version: "1.0", Statements: setRecurseResource(setValidPrefixActions(setWriteOnlyStatement("minio-bucket", "")))}, {Version: "1.0", Statements: setRecurseResource(setValidPrefixActions(setWriteOnlyStatement("minio-bucket", "")))},
// BucketPolciy - 7. // BucketPolciy - 7.
// constructing policy statment with non recursive but // constructing policy statement with non recursive but
// lexically close resources. // lexically close resources.
// should result in ErrNone. // should result in ErrNone.
{Version: "1.0", Statements: setResourceLexical(setValidPrefixActions(setWriteOnlyStatement("minio-bucket", "oo")))}, {Version: "1.0", Statements: setResourceLexical(setValidPrefixActions(setWriteOnlyStatement("minio-bucket", "oo")))},

View File

@ -27,7 +27,7 @@ import (
"testing" "testing"
) )
// Wrapper for calling GetObjectInfo tests for both XL muliple disks and single node setup. // Wrapper for calling GetObjectInfo tests for both XL multiple disks and single node setup.
func TestGetObjectInfo(t *testing.T) { func TestGetObjectInfo(t *testing.T) {
ExecObjectLayerTest(t, testGetObjectInfo) ExecObjectLayerTest(t, testGetObjectInfo)
} }
@ -105,7 +105,7 @@ func testGetObjectInfo(obj ObjectLayer, instanceType string, t *testing.T) {
t.Errorf("Test %d: %s: Expected Content Type of the object to be %v, but instead found it to be %v", i+1, instanceType, testCase.result.ContentType, result.ContentType) t.Errorf("Test %d: %s: Expected Content Type of the object to be %v, but instead found it to be %v", i+1, instanceType, testCase.result.ContentType, result.ContentType)
} }
if testCase.result.IsDir != result.IsDir { if testCase.result.IsDir != result.IsDir {
t.Errorf("Test %d: %s: Expected IsDir flag of the object to be %v, but instead found it to be %v", i+1, instanceType,testCase.result.IsDir, result.IsDir) t.Errorf("Test %d: %s: Expected IsDir flag of the object to be %v, but instead found it to be %v", i+1, instanceType, testCase.result.IsDir, result.IsDir)
} }
} }
} }

View File

@ -26,7 +26,7 @@ import (
"testing" "testing"
) )
// Wrapper for calling ListObjects tests for both XL muliple disks and single node setup. // Wrapper for calling ListObjects tests for both XL multiple disks and single node setup.
func TestListObjects(t *testing.T) { func TestListObjects(t *testing.T) {
ExecObjectLayerTest(t, testListObjects) ExecObjectLayerTest(t, testListObjects)
} }

View File

@ -22,7 +22,7 @@ import (
"testing" "testing"
) )
// Wrapper for calling NewMultipartUpload tests for both XL muliple disks and single node setup. // Wrapper for calling NewMultipartUpload tests for both XL multiple disks and single node setup.
func TestObjectNewMultipartUpload(t *testing.T) { func TestObjectNewMultipartUpload(t *testing.T) {
ExecObjectLayerTest(t, testObjectNewMultipartUpload) ExecObjectLayerTest(t, testObjectNewMultipartUpload)
} }
@ -66,7 +66,7 @@ func testObjectNewMultipartUpload(obj ObjectLayer, instanceType string, t *testi
} }
} }
// Wrapper for calling isUploadIDExists tests for both XL muliple disks and single node setup. // Wrapper for calling isUploadIDExists tests for both XL multiple disks and single node setup.
func TestObjectAPIIsUploadIDExists(t *testing.T) { func TestObjectAPIIsUploadIDExists(t *testing.T) {
ExecObjectLayerTest(t, testObjectAPIIsUploadIDExists) ExecObjectLayerTest(t, testObjectAPIIsUploadIDExists)
} }
@ -96,7 +96,7 @@ func testObjectAPIIsUploadIDExists(obj ObjectLayer, instanceType string, t *test
} }
} }
// Wrapper for calling PutObjectPart tests for both XL muliple disks and single node setup. // Wrapper for calling PutObjectPart tests for both XL multiple disks and single node setup.
func TestObjectAPIPutObjectPart(t *testing.T) { func TestObjectAPIPutObjectPart(t *testing.T) {
ExecObjectLayerTest(t, testObjectAPIPutObjectPart) ExecObjectLayerTest(t, testObjectAPIPutObjectPart)
} }

View File

@ -51,7 +51,7 @@ func ExecObjectLayerTest(t *testing.T, objTest func(obj ObjectLayer, instanceTyp
return objLayer, erasureDisks, nil return objLayer, erasureDisks, nil
} }
// getSingleNodeObjectLayer - Instantiates single node object layer and retuns it. // getSingleNodeObjectLayer - Instantiates single node object layer and returns it.
getSingleNodeObjectLayer := func() (ObjectLayer, string, error) { getSingleNodeObjectLayer := func() (ObjectLayer, string, error) {
// Make a temporary directory to use as the obj. // Make a temporary directory to use as the obj.
fsDir, err := ioutil.TempDir("", "minio-") fsDir, err := ioutil.TempDir("", "minio-")