From 984d27ab6245419c876240e6457080a992df9545 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Thu, 7 Mar 2019 14:44:24 -0500 Subject: [PATCH] simplify --- src/allmydata/test/test_magic_folder.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/allmydata/test/test_magic_folder.py b/src/allmydata/test/test_magic_folder.py index 7fb0d3c66..75b2e9780 100644 --- a/src/allmydata/test/test_magic_folder.py +++ b/src/allmydata/test/test_magic_folder.py @@ -2104,10 +2104,8 @@ class SingleMagicFolderTestMixin(MagicFolderCLITestMixin, ShouldFailMixin, Reall self.failUnlessEqual(metadata['version'], 2) def test_write_short_file(self): - d = DeferredContext(defer.succeed(None)) # Write something short enough for a LIT file. - d.addCallback(lambda ign: self._check_file(u"short", "test")) - return d.result + return self._check_file(u"short", "test") def test_magic_folder(self): d = DeferredContext(defer.succeed(None))