projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into 7253-datamanager-test-errors
[arvados.git]
/
services
/
fuse
/
tests
/
test_inodes.py
diff --git
a/services/fuse/tests/test_inodes.py
b/services/fuse/tests/test_inodes.py
index 61a365f8b06c9c7d5294d4662aa09aa118458191..61170d59807d5bf38ab4b4f622698e5aa78628c8 100644
(file)
--- 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 arvados_fuse
import mock
import unittest
+import llfuse
class InodeTests(unittest.TestCase):
def test_inodes_basic(self):
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
# 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())
self.assertEqual(0, cache.total())
cache.touch(ent3)
self.assertEqual(600, cache.total())