aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/fscache_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/filesys/fscache_test.go')
-rw-r--r--weed/filesys/fscache_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/weed/filesys/fscache_test.go b/weed/filesys/fscache_test.go
index 06ef7c454..67f9aacc8 100644
--- a/weed/filesys/fscache_test.go
+++ b/weed/filesys/fscache_test.go
@@ -11,6 +11,12 @@ func TestPathSplit(t *testing.T) {
if len(parts) != 0 {
t.Errorf("expecting an empty list, but getting %d", len(parts))
}
+
+ parts = util.FullPath("/readme.md").Split()
+ if len(parts) != 1 {
+ t.Errorf("expecting an empty list, but getting %d", len(parts))
+ }
+
}
func TestFsCache(t *testing.T) {