diff --git a/nixos/tests/matrix/conduit.nix b/nixos/tests/matrix/conduit.nix index 02bf00886ba4..059f1ce4f09b 100644 --- a/nixos/tests/matrix/conduit.nix +++ b/nixos/tests/matrix/conduit.nix @@ -77,7 +77,7 @@ in # Close the client await client.close() - asyncio.get_event_loop().run_until_complete(main()) + asyncio.run(main()) '') ]; }; diff --git a/nixos/tests/matrix/dendrite.nix b/nixos/tests/matrix/dendrite.nix index 0d5129e553d5..a35675bfde3e 100644 --- a/nixos/tests/matrix/dendrite.nix +++ b/nixos/tests/matrix/dendrite.nix @@ -77,7 +77,7 @@ in # Close the client await client.close() - asyncio.get_event_loop().run_until_complete(main()) + asyncio.run(main()) '') ]; };