From beb74526f386d50a8e8d83ebbcb3d02fdc8f9ed9 Mon Sep 17 00:00:00 2001 From: Vignan Lavu Date: Sun, 9 Apr 2017 14:24:37 +0000 Subject: [PATCH] networks: Fix failing network test --- plinth/tests/test_network.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plinth/tests/test_network.py b/plinth/tests/test_network.py index a187bc69a..74e9ed456 100644 --- a/plinth/tests/test_network.py +++ b/plinth/tests/test_network.py @@ -21,6 +21,7 @@ Test module for network configuration utilities. import copy import os +import time import unittest @@ -100,6 +101,9 @@ class TestNetwork(unittest.TestCase): cls.ethernet_uuid = network.add_connection(ethernet_settings) cls.wifi_uuid = network.add_connection(wifi_settings) cls.pppoe_uuid = network.add_connection(pppoe_settings) + # XXX: Handle this properly by waiting for asynchronous add_connection + # to complete. + time.sleep(0.1) @classmethod def tearDown(cls):