diff options
| author | chrislusf <chris.lu@gmail.com> | 2016-03-30 12:53:37 -0700 |
|---|---|---|
| committer | chrislusf <chris.lu@gmail.com> | 2016-03-30 12:53:37 -0700 |
| commit | 67cd8959bcc81cbe32a6c1998e8facb36436bb88 (patch) | |
| tree | 3dad20162fd5e8ad8d82b1dd251e54864c12ca98 /go | |
| parent | c359a5117f9400a08b18f01daaaea13b09e3f235 (diff) | |
| download | seaweedfs-67cd8959bcc81cbe32a6c1998e8facb36436bb88.tar.xz seaweedfs-67cd8959bcc81cbe32a6c1998e8facb36436bb88.zip | |
fix tests
Diffstat (limited to 'go')
| -rw-r--r-- | go/filer/embedded_filer/directory_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/go/filer/embedded_filer/directory_test.go b/go/filer/embedded_filer/directory_test.go index cb0090bf2..c8b3f1f30 100644 --- a/go/filer/embedded_filer/directory_test.go +++ b/go/filer/embedded_filer/directory_test.go @@ -57,13 +57,13 @@ func TestDirectory(t *testing.T) { func printTree(node *DirectoryEntryInMap, path []string) { println(strings.Join(path, "/") + "/" + node.Name) path = append(path, node.Name) - for _, v := range node.SubDirectories { + for _, v := range node.subDirectories { printTree(v, path) } } func compare(root1 *DirectoryEntryInMap, root2 *DirectoryEntryInMap) bool { - if len(root1.SubDirectories) != len(root2.SubDirectories) { + if len(root1.subDirectories) != len(root2.subDirectories) { return false } if root1.Name != root2.Name { @@ -77,8 +77,8 @@ func compare(root1 *DirectoryEntryInMap, root2 *DirectoryEntryInMap) bool { return false } } - for k, v := range root1.SubDirectories { - if !compare(v, root2.SubDirectories[k]) { + for k, v := range root1.subDirectories { + if !compare(v, root2.subDirectories[k]) { return false } } |
