Shard by-id mount entries
This commit is contained in:
+6
-2
@@ -87,9 +87,13 @@ func TestBuildMountTreeAddsByIDDirectory(t *testing.T) {
|
||||
if !ok {
|
||||
t.Fatalf("expected by-id directory, got %#v", root.children)
|
||||
}
|
||||
shard, ok := byID.children["it"].(*dirNode)
|
||||
if !ok {
|
||||
t.Fatalf("expected by-id shard, got %#v", byID.children)
|
||||
}
|
||||
for _, name := range []string{"item-1.pdf", "item-1-2.txt", "item-1-3.pdf"} {
|
||||
if _, ok := byID.children[name].(*fileNode); !ok {
|
||||
t.Fatalf("expected %s in by-id, got %#v", name, byID.children)
|
||||
if _, ok := shard.children[name].(*fileNode); !ok {
|
||||
t.Fatalf("expected %s in by-id shard, got %#v", name, shard.children)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user