fix more inotify test calls

This commit is contained in:
David Stainton 2015-05-26 10:04:08 -07:00 committed by Daira Hopwood
parent 364526fd66
commit abe591e5f8

View File

@ -254,8 +254,7 @@ class DropUploadTestMixin(GridTestMixin, ShouldFailMixin, ReallyEqualMixin, NonA
def _move_dir_away(ign): def _move_dir_away(ign):
os.rename(new_empty_tree_dir, empty_tree_dir) os.rename(new_empty_tree_dir, empty_tree_dir)
# XXX mock notify event self.notify(to_filepath(new_empty_tree_dir), self.inotify.IN_CLOSE_WRITE) # XXX
#self.notify_close_write(to_filepath(new_empty_tree_dir))
d.addCallback(_move_dir_away) d.addCallback(_move_dir_away)
def create_file(val): def create_file(val):
@ -263,8 +262,7 @@ class DropUploadTestMixin(GridTestMixin, ShouldFailMixin, ReallyEqualMixin, NonA
self.uploader.set_uploaded_callback(d2.callback) self.uploader.set_uploaded_callback(d2.callback)
test_file = abspath_expanduser_unicode(u"what", base=empty_tree_dir) test_file = abspath_expanduser_unicode(u"what", base=empty_tree_dir)
fileutil.write(test_file, "meow") fileutil.write(test_file, "meow")
# XXX self.notify(to_filepath(test_file), self.inotify.IN_CLOSE_WRITE)
#self.notify_close_write(to_filepath(test_file))
return d2 return d2
d.addCallback(create_file) d.addCallback(create_file)
def sleep_a_while(ign): def sleep_a_while(ign):