aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtest/functional/util/dummy_http.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/util/dummy_http.py b/test/functional/util/dummy_http.py
index 832dbdc79..c1abf7eb8 100755
--- a/test/functional/util/dummy_http.py
+++ b/test/functional/util/dummy_http.py
@@ -141,4 +141,5 @@ async def main():
await asyncio.Event().wait()
if __name__ == "__main__":
- asyncio.run(main())
+ loop = asyncio.get_event_loop()
+ loop.run_until_complete(main())