host: spawn each asynchronous task with the right aliveness
diff --git a/tests/device_test.py b/tests/device_test.py
index 123df29..07aecdd 100644
--- a/tests/device_test.py
+++ b/tests/device_test.py
@@ -223,8 +223,16 @@
 
 
 # -----------------------------------------------------------------------------
-async def run_test_device():
-    await test_device_connect_parallel()
[email protected]
+async def test_flush():
+    d0 = Device(host=Host(None, None))
+    task = d0.abort_on('flush', asyncio.sleep(10000))
+    await d0.host.flush()
+    try:
+        await task
+        assert False
+    except asyncio.CancelledError:
+        pass
 
 
 # -----------------------------------------------------------------------------
@@ -249,6 +257,14 @@
 
 
 # -----------------------------------------------------------------------------
+async def run_test_device():
+    await test_device_connect_parallel()
+    await test_flush()
+    await test_gatt_services_with_gas()
+    await test_gatt_services_without_gas()
+
+
+# -----------------------------------------------------------------------------
 if __name__ == '__main__':
     logging.basicConfig(level=os.environ.get('BUMBLE_LOGLEVEL', 'INFO').upper())
     asyncio.run(run_test_device())