From cd4980bf7d1a1e70dbf91fecd34f9358c7af17ad Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Wed, 18 Mar 2015 14:14:46 +1100 Subject: [PATCH] Uncommented unlink tests. --- samples/memfs/memfs_test.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/samples/memfs/memfs_test.go b/samples/memfs/memfs_test.go index 57852a3..5728df0 100644 --- a/samples/memfs/memfs_test.go +++ b/samples/memfs/memfs_test.go @@ -602,9 +602,7 @@ func (t *MemFSTest) UnlinkFile_StillOpen() { AssertEq(nil, err) ExpectEq(4, fi.Size()) - // TODO(jacobsa): Re-enable this assertion if the following issue is fixed: - // https://github.com/bazillion/fuse/issues/66 - // ExpectEq(0, fi.Sys().(*syscall.Stat_t).Nlink) + ExpectEq(0, fi.Sys().(*syscall.Stat_t).Nlink) // The contents should still be available. buf := make([]byte, 1024) @@ -724,10 +722,7 @@ func (t *MemFSTest) Rmdir_OpenedForReading() { ExpectEq("dir", fi.Name()) ExpectEq(0, fi.ModTime().Sub(createTime)) - - // TODO(jacobsa): Re-enable this assertion if the following issue is fixed: - // https://github.com/bazillion/fuse/issues/66 - // ExpectEq(0, fi.Sys().(*syscall.Stat_t).Nlink) + ExpectEq(0, fi.Sys().(*syscall.Stat_t).Nlink) // Attempt to read from the directory. This shouldn't see any junk from the // new directory. It should either succeed with an empty result or should