Fixes failing gate job due to different mimetypes on different OSes

Closes-Bug: #1697562
Change-Id: If1eccedc87c259685d8d7798f479bb81406b4b04
This commit is contained in:
Kieran Forde 2017-06-14 14:46:17 +02:00
parent 759ed4df86
commit 0013e11026
1 changed files with 2 additions and 1 deletions

View File

@ -136,8 +136,9 @@ class TestFreezerCompressGzip(base.BaseFreezerTest):
self.assertEqual('gzip', metadata['compression'])
# file utility should detect the correct mimetype
gizp_mimetypes = ['application/gzip', 'application/x-gzip']
mimetype = self._file_get_mimetype(metadata)
self.assertEqual('application/gzip', mimetype)
self.assertIn(mimetype, gizp_mimetypes)
# actual contents should be the same
diff_args = ['diff', '-r', '-q',