diff --git a/test/aio/ipctest.py b/test/aio/ipctest.py
index <HASH>..<HASH> 100644
--- a/test/aio/ipctest.py
+++ b/test/aio/ipctest.py
@@ -47,6 +47,7 @@ class IpcTest:
             pass
 
         process.kill()
+        process.wait()
         IpcTest.i3_conn = None
 
     async def command_checked(self, cmd):
diff --git a/test/ipctest.py b/test/ipctest.py
index <HASH>..<HASH> 100644
--- a/test/ipctest.py
+++ b/test/ipctest.py
@@ -39,6 +39,7 @@ class IpcTest:
             pass
 
         process.kill()
+        process.wait()
         IpcTest.i3_conn = None
 
     def open_window(self):
test: wait for i3 process to end