[ARVADOS] updated: 678dd505394eecffe65be82a39b2303b1e83577b

Git user git at public.curoverse.com
Fri Sep 23 12:09:46 EDT 2016


Summary of changes:
 services/fuse/tests/test_mount.py | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

       via  678dd505394eecffe65be82a39b2303b1e83577b (commit)
      from  cc196fc783d1ee92fb166c2ca1df4134193be85e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 678dd505394eecffe65be82a39b2303b1e83577b
Author: Tom Clegg <tom at curoverse.com>
Date:   Fri Sep 23 12:06:54 2016 -0400

    Use longer timeout for flaky test.
    
    No issue #

diff --git a/services/fuse/tests/test_mount.py b/services/fuse/tests/test_mount.py
index 39f1109..79e7948 100644
--- a/services/fuse/tests/test_mount.py
+++ b/services/fuse/tests/test_mount.py
@@ -713,12 +713,15 @@ class FuseUpdateFromEventTest(MountTestBase):
             with collection2.open("file1.txt", "w") as f:
                 f.write("foo")
 
-        time.sleep(1)
-
-        # should show up via event bus notify
-
-        d1 = llfuse.listdir(os.path.join(self.mounttmp))
-        self.assertEqual(["file1.txt"], sorted(d1))
+        # should show up in <10s via event bus notify
+        expect = ["file1.txt"]
+        for _ in range(100):
+            d1 = sorted(llfuse.listdir(os.path.join(self.mounttmp)))
+            if d1 == expect:
+                break
+            time.sleep(0.1)
+
+        self.assertEqual(expect, d1)
 
 
 def fuseFileConflictTestHelper(mounttmp):

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list