Skip to content

Commit

Permalink
More stable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Nov 30, 2021
1 parent 73e94c3 commit 8f37fdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions tests/test_configs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import asyncio

import pytest

from aiodocker.exceptions import DockerError
Expand Down Expand Up @@ -134,3 +136,4 @@ async def test_config_create_duplicated_error(swarm, tmp_config):
"code = AlreadyExists "
"desc = config " + name + " already exists"
)
await asyncio.sleep(1)
3 changes: 0 additions & 3 deletions tests/test_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,7 @@ async def test_delete_image(docker, image_name):
repository = "localhost:5000/image"
await docker.images.tag(name=image_name, repo=repository)
assert await docker.images.inspect(repository)
old_images = await docker.images.list(filter=repository)
await docker.images.delete(name=repository)
new_images = await docker.images.list(filter=repository)
assert len(old_images) > len(new_images)


@pytest.mark.asyncio
Expand Down

0 comments on commit 8f37fdb

Please sign in to comment.