X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c59093180fd92f0d7c6607a49458446212ebd058..443f3228eb4c56849f77ae9c421dd1cc6fdbc5f1:/services/fuse/tests/test_inodes.py diff --git a/services/fuse/tests/test_inodes.py b/services/fuse/tests/test_inodes.py index 61a365f8b0..61170d5980 100644 --- a/services/fuse/tests/test_inodes.py +++ b/services/fuse/tests/test_inodes.py @@ -1,6 +1,7 @@ import arvados_fuse import mock import unittest +import llfuse class InodeTests(unittest.TestCase): def test_inodes_basic(self): @@ -140,7 +141,9 @@ class InodeTests(unittest.TestCase): # Delete ent1 self.assertEqual(500, cache.total()) ent1.clear.return_value = True - inodes.del_entry(ent1) + ent1.ref_count = 0 + with llfuse.lock: + inodes.del_entry(ent1) self.assertEqual(0, cache.total()) cache.touch(ent3) self.assertEqual(600, cache.total())