Merge pull request #2485 from thaJeztah/fix_ImageCollectionTest_test_pull_multiple

Fix ImageCollectionTest.test_pull_multiple flakiness
This commit is contained in:
Ulysses Souza 2020-01-07 17:13:28 +01:00 committed by GitHub
commit f2e09ae632
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -87,8 +87,10 @@ class ImageCollectionTest(BaseIntegrationTest):
def test_pull_multiple(self):
client = docker.from_env(version=TEST_API_VERSION)
images = client.images.pull('hello-world')
assert len(images) == 1
assert 'hello-world:latest' in images[0].attrs['RepoTags']
assert len(images) >= 1
assert any([
'hello-world:latest' in img.attrs['RepoTags'] for img in images
])
def test_load_error(self):
client = docker.from_env(version=TEST_API_VERSION)