From 20ca65c7936a140d89f3932ddeb39b732b1be392 Mon Sep 17 00:00:00 2001 From: karthic rao Date: Sat, 7 May 2016 01:02:44 +0530 Subject: [PATCH] Cleanup: mispell fixes --- bucket-policy-parser_test.go | 2 +- object-api-getobjectinfo_test.go | 4 ++-- object-api-listobjects_test.go | 2 +- object-api-multipart_test.go | 6 +++--- test-utils.go | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bucket-policy-parser_test.go b/bucket-policy-parser_test.go index 55602e1c1..b893828d2 100644 --- a/bucket-policy-parser_test.go +++ b/bucket-policy-parser_test.go @@ -485,7 +485,7 @@ func TestCheckBucketPolicyResources(t *testing.T) { // should result in ErrMalformedPolicy {Version: "1.0", Statements: setRecurseResource(setValidPrefixActions(setWriteOnlyStatement("minio-bucket", "")))}, // BucketPolciy - 7. - // constructing policy statment with non recursive but + // constructing policy statement with non recursive but // lexically close resources. // should result in ErrNone. {Version: "1.0", Statements: setResourceLexical(setValidPrefixActions(setWriteOnlyStatement("minio-bucket", "oo")))}, diff --git a/object-api-getobjectinfo_test.go b/object-api-getobjectinfo_test.go index 83b1a3263..da432c692 100644 --- a/object-api-getobjectinfo_test.go +++ b/object-api-getobjectinfo_test.go @@ -27,7 +27,7 @@ import ( "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) { 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) } 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) } } } diff --git a/object-api-listobjects_test.go b/object-api-listobjects_test.go index 350d4324f..3578e5510 100644 --- a/object-api-listobjects_test.go +++ b/object-api-listobjects_test.go @@ -26,7 +26,7 @@ import ( "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) { ExecObjectLayerTest(t, testListObjects) } diff --git a/object-api-multipart_test.go b/object-api-multipart_test.go index 4a107d526..db11a6221 100644 --- a/object-api-multipart_test.go +++ b/object-api-multipart_test.go @@ -22,7 +22,7 @@ import ( "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) { 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) { 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) { ExecObjectLayerTest(t, testObjectAPIPutObjectPart) } diff --git a/test-utils.go b/test-utils.go index 94970ff37..b5c944667 100644 --- a/test-utils.go +++ b/test-utils.go @@ -51,7 +51,7 @@ func ExecObjectLayerTest(t *testing.T, objTest func(obj ObjectLayer, instanceTyp 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) { // Make a temporary directory to use as the obj. fsDir, err := ioutil.TempDir("", "minio-")