From 86829a29c1306f31e4319f937f0ee47fc99f6627 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 28 Jun 2020 17:20:25 -0700 Subject: [PATCH] network: test: Fix race condition when deleting connections When deleting connections after editing, sometimes the connection is not found. Wait until the connection settles down to avoid connection not found errors during cleanup. Seems to work for now but still not the best way to handle this. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/tests/test_network.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plinth/tests/test_network.py b/plinth/tests/test_network.py index a2a40c234..3bed5153f 100644 --- a/plinth/tests/test_network.py +++ b/plinth/tests/test_network.py @@ -109,6 +109,7 @@ def _connection(network, settings): uuid = network.add_connection(settings) time.sleep(0.1) yield uuid + time.sleep(0.1) network.delete_connection(uuid)