aboutsummaryrefslogtreecommitdiff
path: root/weed/util/bounded_tree/bounded_tree_test.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-10-12 21:58:37 -0700
committerChris Lu <chris.lu@gmail.com>2020-10-12 21:58:37 -0700
commitb18f21cce178b60531086f164d24e832a7b6eb86 (patch)
tree328a7050a256977bef47edd9e45bff7fb5cb1eb6 /weed/util/bounded_tree/bounded_tree_test.go
parentf022aff289d509e93a93a0e8386693876d1be240 (diff)
downloadseaweedfs-b18f21cce178b60531086f164d24e832a7b6eb86.tar.xz
seaweedfs-b18f21cce178b60531086f164d24e832a7b6eb86.zip
mount: fix bound tree with filer.path
fix https://github.com/chrislusf/seaweedfs/issues/1528
Diffstat (limited to 'weed/util/bounded_tree/bounded_tree_test.go')
-rw-r--r--weed/util/bounded_tree/bounded_tree_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/util/bounded_tree/bounded_tree_test.go b/weed/util/bounded_tree/bounded_tree_test.go
index 0b9c3177a..465f1cc9c 100644
--- a/weed/util/bounded_tree/bounded_tree_test.go
+++ b/weed/util/bounded_tree/bounded_tree_test.go
@@ -52,7 +52,7 @@ func TestBoundedTree(t *testing.T) {
// g
// h
- tree := NewBoundedTree()
+ tree := NewBoundedTree(util.FullPath("/"))
tree.EnsureVisited(util.FullPath("/a/b/c"), visitFn)
@@ -100,7 +100,7 @@ func TestEmptyBoundedTree(t *testing.T) {
// g
// h
- tree := NewBoundedTree()
+ tree := NewBoundedTree(util.FullPath("/"))
visitFn := func(path util.FullPath) (childDirectories []string, err error) {
fmt.Printf(" visit %v ...\n", path)