mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
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 <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
60bbdfabf7
commit
86829a29c1
@ -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)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user