mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +00:00
networks: Fix failing network test
This commit is contained in:
parent
6a91945219
commit
beb74526f3
@ -21,6 +21,7 @@ Test module for network configuration utilities.
|
|||||||
|
|
||||||
import copy
|
import copy
|
||||||
import os
|
import os
|
||||||
|
import time
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
@ -100,6 +101,9 @@ class TestNetwork(unittest.TestCase):
|
|||||||
cls.ethernet_uuid = network.add_connection(ethernet_settings)
|
cls.ethernet_uuid = network.add_connection(ethernet_settings)
|
||||||
cls.wifi_uuid = network.add_connection(wifi_settings)
|
cls.wifi_uuid = network.add_connection(wifi_settings)
|
||||||
cls.pppoe_uuid = network.add_connection(pppoe_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
|
@classmethod
|
||||||
def tearDown(cls):
|
def tearDown(cls):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user