Skip to content

Commit

Permalink
Bump dependencies (#640)
Browse files Browse the repository at this point in the history
* Bump dependencies

* Fix warnings
  • Loading branch information
asvetlov committed Nov 3, 2021
1 parent 6fefd8d commit 7fcfa50
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
5 changes: 3 additions & 2 deletions requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
aiohttp>=3.0
yarl>=1.0
aiohttp>=3.8
async-timeout>=4.0
yarl>=1.7.2
4 changes: 2 additions & 2 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ docutils==0.17.1
tox==3.24.4
tox-travis==0.12
pygments==2.10.0
aiohttp==3.7.4.post0
yarl==1.7.0
aiohttp==3.8.0
yarl==1.7.2
multidict==5.2.0
6 changes: 3 additions & 3 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ async def test_stdio_stdin(docker, testing_images, shell_container):
try:
# collect the websocket outputs for at most 2 secs until we see the
# output.
with timeout(2):
async with timeout(2):
while True:
output += await ws.receive_bytes()
if b"print('hello world\\n')" in output:
Expand All @@ -194,7 +194,7 @@ async def test_stdio_stdin(docker, testing_images, shell_container):

try:
# collect the logs for at most 2 secs until we see the output.
with timeout(2):
async with timeout(2):
async for s in shell_container.log(stdout=True, follow=True):
log.append(s)
if "hello world\r\n" in s:
Expand Down Expand Up @@ -434,7 +434,7 @@ async def test_events(docker, image_name, event_loop):
events_occurred = []
while True:
try:
with timeout(0.2):
async with timeout(0.2):
event = await subscriber.get()
if event["Actor"]["ID"] == container._id:
events_occurred.append(event["Action"])
Expand Down
6 changes: 3 additions & 3 deletions tests/test_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async def test_logs_services(swarm):
filters = {"service": service_id}

# wait till task status is `complete`
with timeout(60):
async with timeout(60):
while True:
await asyncio.sleep(2)
task = await swarm.tasks.list(filters=filters)
Expand Down Expand Up @@ -96,7 +96,7 @@ async def test_logs_services_stream(swarm):
filters = {"service": service_id}

# wait till task status is `complete`
with timeout(60):
async with timeout(60):
while True:
await asyncio.sleep(2)
task = await swarm.tasks.list(filters=filters)
Expand All @@ -109,7 +109,7 @@ async def test_logs_services_stream(swarm):
# let's check for them
count = 0
try:
with timeout(2):
async with timeout(2):
while True:
async for log in swarm.services.logs(
service_id, stdout=True, follow=True
Expand Down

0 comments on commit 7fcfa50

Please sign in to comment.