From f3446ab5742f3d519a851d60870a640ea842fc1d Mon Sep 17 00:00:00 2001 From: Kislay Kishore Date: Fri, 23 Aug 2024 11:34:03 +0530 Subject: [PATCH] Incorporate review comments. --- internal/fs/inode/dir_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/internal/fs/inode/dir_test.go b/internal/fs/inode/dir_test.go index b3563091c5..ef7b6c4c29 100644 --- a/internal/fs/inode/dir_test.go +++ b/internal/fs/inode/dir_test.go @@ -1442,14 +1442,18 @@ func (t *DirTest) LocalChildFileCore() { AssertEq(t.bucket.Name(), core.Bucket.Name()) AssertEq("foo/bar/qux", core.FullName.objectName) AssertTrue(core.Local) + AssertEq(nil, core.MinObject) + result, err := t.in.LookUpChild(t.ctx, "qux") + AssertEq(nil, err) + AssertEq(nil, result) + ExpectEq(metadata.UnknownType, t.getTypeFromCache("qux")) } func (t *DirTest) InsertIntoTypeCache() { t.in.InsertFileIntoTypeCache("abc") - d := t.in.(*dirInode) + d := t.in.(*dirInode) tp := t.tc.Get(d.cacheClock.Now(), "abc") - AssertEq(2, tp) }