only create bzip file if needed. #415

This commit is contained in:
Oliver Sauder
2016-10-13 13:48:28 +02:00
parent 34ea7e8d61
commit fcd4429370
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ func (s *CompressSuite) TearDownTest(c *C) {
}
func (s *CompressSuite) TestCompress(c *C) {
err := CompressFile(s.tempfile)
err := CompressFile(s.tempfile, false)
c.Assert(err, IsNil)
buf := make([]byte, len(testString))