]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Fix dummy http server on python 3.6 4710/head
authorAndrew Lewis <nerf@judo.za.org>
Sat, 18 Nov 2023 00:08:46 +0000 (02:08 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Sat, 18 Nov 2023 00:08:46 +0000 (02:08 +0200)
test/functional/util/dummy_http.py

index 832dbdc7975f414af369cc9ab15ce661bcaa06d1..c1abf7eb864b4d04be4d57388602266fe41c420c 100755 (executable)
@@ -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())