Skip to content

Commit

Permalink
Fix indentation in integration.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
azawlocki committed May 12, 2021
1 parent 3954819 commit 3045f11
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ jobs:
poetry install -E integration-tests
- name: Disconnect Docker containers from default network
continue-on-error: true
run: |
docker network inspect docker_default
sudo apt-get install -y jq
docker network inspect docker_default | jq ".[0].Containers | map(.Name)[]" | tee /dev/stderr | xargs --max-args 1 -- docker network disconnect -f docker_default
continue-on-error: true
run: |
docker network inspect docker_default
sudo apt-get install -y jq
docker network inspect docker_default | jq ".[0].Containers | map(.Name)[]" | tee /dev/stderr | xargs --max-args 1 -- docker network disconnect -f docker_default
- name: Remove Docker containers
continue-on-error: true
Expand Down
4 changes: 2 additions & 2 deletions tests/goth/test_async_task_generation/requestor.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def worker(work_ctx, tasks):
# Seed the queue with the first task:
await task_queue.put(Task(data=3))

async def input_generator() -> AsyncGenerator[Task]:
async def input_generator():
"""Task generator yields tasks removed from `queue`."""
while True:
task = await task_queue.get()
Expand All @@ -56,7 +56,7 @@ async def input_generator() -> AsyncGenerator[Task]:
async for task in executor.submit(worker, input_generator()):
print("task result:", task.result, file=sys.stderr)
for n in range(task.result):
await task.queue.put(Task(data=task.result - 1))
await task_queue.put(Task(data=task.result - 1))

print("all done!", file=sys.stderr)

Expand Down

0 comments on commit 3045f11

Please sign in to comment.