Changeset 9231a4d in mod_gnutls


Ignore:
Timestamp:
Nov 28, 2020, 4:19:54 PM (11 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master
Children:
5f0e94b
Parents:
12ed912
Message:

Send stop signal to services before leaving their AsyncExitStack?

The AsyncExitStack? exits its contexts one after the other, even for
async contextmanagers. Sending the stop signal to services before
leaving should speed up tests a little. Note that this only happens if
the async with block isn't left because of an unhandled exception.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/runtest.py

    r12ed912 r9231a4d  
    1818import asyncio
    1919import contextlib
     20import itertools
    2021import os
    2122import os.path
     
    208209                          response_log=args.log_responses)
    209210
     211        await asyncio.wait(
     212            {asyncio.create_task(s.stop())
     213             for s in itertools.chain([apache], bg_services)})
     214
    210215    # run extra checks the test's hooks.py might define
    211216    if plugin.post_check:
Note: See TracChangeset for help on using the changeset viewer.