Merge pull request #36664 from cachedout/remove_useless_size_check

Remove possible race between grains dumps in test
This commit is contained in:
Mike Place 2016-09-29 15:36:27 +09:00 committed by GitHub
commit e4c5d0bfd6

View File

@ -417,8 +417,6 @@ class CallTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
stat3 = os.stat(output_file)
# Mode must have changed since we're creating a new log file
self.assertNotEqual(stat1.st_mode, stat3.st_mode)
# Data was appended to file
self.assertEqual(stat1.st_size, stat3.st_size)
finally:
if os.path.exists(output_file):
os.unlink(output_file)