forked from TrueCloudLab/distribution
Fix typo
Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
This commit is contained in:
parent
8eab5d1bd6
commit
48f3d9ad29
1 changed files with 5 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue