]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: decrease sleep time in test_bind_carrier()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 16 Feb 2019 18:59:15 +0000 (03:59 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 17 Feb 2019 21:11:50 +0000 (06:11 +0900)
This effectively reverts 63eb09569aa90721be4accbea4b78421f3c1ba7c,
as the commit does not fix #11724.

test/test-network/systemd-networkd-tests.py

index 442ff094c9f604fe97630a9794c7358d8166e745..494606d53fb491421786c3e7ee9f524b47eb5947 100755 (executable)
@@ -959,7 +959,7 @@ class NetworkdNetWorkTests(unittest.TestCase, Utilities):
 
         self.assertEqual(subprocess.call(['ip', 'link', 'add', 'dummy98', 'type', 'dummy']), 0)
         self.assertEqual(subprocess.call(['ip', 'link', 'set', 'dummy98', 'up']), 0)
-        time.sleep(4)
+        time.sleep(2)
         output = subprocess.check_output(['ip', 'address', 'show', 'test1']).rstrip().decode('utf-8')
         print(output)
         self.assertRegex(output, 'UP,LOWER_UP')
@@ -969,7 +969,7 @@ class NetworkdNetWorkTests(unittest.TestCase, Utilities):
 
         self.assertEqual(subprocess.call(['ip', 'link', 'add', 'dummy99', 'type', 'dummy']), 0)
         self.assertEqual(subprocess.call(['ip', 'link', 'set', 'dummy99', 'up']), 0)
-        time.sleep(4)
+        time.sleep(2)
         output = subprocess.check_output(['ip', 'address', 'show', 'test1']).rstrip().decode('utf-8')
         print(output)
         self.assertRegex(output, 'UP,LOWER_UP')
@@ -978,7 +978,7 @@ class NetworkdNetWorkTests(unittest.TestCase, Utilities):
         self.assertRegex(output, 'State: routable \(configured\)')
 
         self.assertEqual(subprocess.call(['ip', 'link', 'del', 'dummy98']), 0)
-        time.sleep(4)
+        time.sleep(2)
         output = subprocess.check_output(['ip', 'address', 'show', 'test1']).rstrip().decode('utf-8')
         print(output)
         self.assertRegex(output, 'UP,LOWER_UP')
@@ -987,7 +987,7 @@ class NetworkdNetWorkTests(unittest.TestCase, Utilities):
         self.assertRegex(output, 'State: routable \(configured\)')
 
         self.assertEqual(subprocess.call(['ip', 'link', 'del', 'dummy99']), 0)
-        time.sleep(4)
+        time.sleep(2)
         output = subprocess.check_output(['ip', 'address', 'show', 'test1']).rstrip().decode('utf-8')
         print(output)
         self.assertNotRegex(output, 'UP,LOWER_UP')
@@ -998,7 +998,7 @@ class NetworkdNetWorkTests(unittest.TestCase, Utilities):
 
         self.assertEqual(subprocess.call(['ip', 'link', 'add', 'dummy98', 'type', 'dummy']), 0)
         self.assertEqual(subprocess.call(['ip', 'link', 'set', 'dummy98', 'up']), 0)
-        time.sleep(4)
+        time.sleep(2)
         output = subprocess.check_output(['ip', 'address', 'show', 'test1']).rstrip().decode('utf-8')
         print(output)
         self.assertRegex(output, 'UP,LOWER_UP')