Merge branch 'master' into 3761-pull-list-worker
[arvados.git] / services / fuse / tests / test_mount.py
index 379a1306d844aa2c8f60c730d34c99c307a6ebfc..764a099149a452ffe4258f2f8a0b922fd381b83a 100644 (file)
@@ -1,4 +1,5 @@
 import arvados
+import arvados.safeapi
 import arvados_fuse as fuse
 import glob
 import json
@@ -21,7 +22,7 @@ class MountTestBase(unittest.TestCase):
         self.mounttmp = tempfile.mkdtemp()
         run_test_server.run()
         run_test_server.authorize_with("admin")
-        self.api = fuse.SafeApi(arvados.config)
+        self.api = arvados.safeapi.ThreadSafeApiCache(arvados.config.settings())
 
     def make_mount(self, root_class, **root_kwargs):
         operations = fuse.Operations(os.getuid(), os.getgid())