diff --git a/registry/storage/driver/s3-aws/s3_test.go b/registry/storage/driver/s3-aws/s3_test.go index 06a2db58..3d5b68e3 100644 --- a/registry/storage/driver/s3-aws/s3_test.go +++ b/registry/storage/driver/s3-aws/s3_test.go @@ -824,9 +824,9 @@ func TestListObjectsV2(t *testing.T) { t.Fatalf("unexpected list result") } - var walkPathes []string + var walkPaths []string if err := d.Walk(ctx, prefix, func(fileInfo storagedriver.FileInfo) error { - walkPathes = append(walkPathes, fileInfo.Path()) + walkPaths = append(walkPaths, fileInfo.Path()) if fileInfo.Path() == path.Dir(subDirPath) { if !fileInfo.IsDir() { t.Fatalf("unexpected walking file info") @@ -842,10 +842,10 @@ func TestListObjectsV2(t *testing.T) { } subPaths = append(subPaths, subDirPath) - sort.Strings(walkPathes) + sort.Strings(walkPaths) sort.Strings(subPaths) - if !reflect.DeepEqual(subPaths, walkPathes) { - t.Fatalf("unexpected walking pathes") + if !reflect.DeepEqual(subPaths, walkPaths) { + t.Fatalf("unexpected walking paths") } if err := d.Delete(ctx, prefix); err != nil {