Browse Source

Disable a test against docker 1.8.3 because it fails due to a bug in docker engine.

Signed-off-by: Daniel Nephin <[email protected]>
Daniel Nephin 10 năm trước cách đây
mục cha
commit
8156cdc56e
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      tests/integration/service_test.py

+ 3 - 2
tests/integration/service_test.py

@@ -693,10 +693,11 @@ class ServiceTest(DockerClientTestCase):
 
     @mock.patch('compose.service.log')
     def test_scale_with_custom_container_name_outputs_warning(self, mock_log):
-        """
-        Test that calling scale on a service that has a custom container name
+        """Test that calling scale on a service that has a custom container name
         results in warning output.
         """
+        # Disable this test against earlier versions because it is flaky
+        self.require_api_version('1.21')
         service = self.create_service('app', container_name='custom-container')
         self.assertEqual(service.custom_container_name(), 'custom-container')