Changeset 663f975 in mod_gnutls


Ignore:
Timestamp:
Dec 12, 2020, 3:09:32 AM (2 years ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master
Children:
bad8d9d
Parents:
5f0e94b
Message:

Support timeout for waiting for service shutdown again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/mgstest/services.py

    r5f0e94b r663f975  
    9191
    9292        WARNING: Calling this method without calling stop() first will
    93         hang, unless the service stops on its own.
     93        hang, unless the service stops on its own. An expired timeout
     94        will raise an asyncio.TimeoutError.
    9495
    9596        """
    9697        if self.process:
    97             await self.process.wait()
     98            await asyncio.wait_for(self.process.wait(), timeout)
    9899            self.returncode = self.process.returncode
    99100            self.process = None
Note: See TracChangeset for help on using the changeset viewer.