X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2403cd9fd5a508252fe4570d6eed9c9c4efa366a..c5f1d667aed3a993296374de3d53f3a2745c4ff4:/services/fuse/tests/test_inodes.py diff --git a/services/fuse/tests/test_inodes.py b/services/fuse/tests/test_inodes.py index cce5b95a80..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): @@ -141,7 +142,8 @@ class InodeTests(unittest.TestCase): self.assertEqual(500, cache.total()) ent1.clear.return_value = True ent1.ref_count = 0 - inodes.del_entry(ent1) + with llfuse.lock: + inodes.del_entry(ent1) self.assertEqual(0, cache.total()) cache.touch(ent3) self.assertEqual(600, cache.total())