]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Revert "test-network: extend sleep time"
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 17 Jul 2019 14:03:01 +0000 (23:03 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 17 Jul 2019 14:13:40 +0000 (23:13 +0900)
This reverts commit 7d7bb5c8613b774bf77c531f46d31ee20d7a1b1e.

Still the CIs are flaky and the commit just slow down them.

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

index 7d059f47e73e7b384b04a72af1b824746655fcff..9ef9b023e9dee2e7952fe91a21916ac1f8c0d8fd 100755 (executable)
@@ -2905,7 +2905,7 @@ class NetworkdDHCPClientTests(unittest.TestCase, Utilities):
         self.wait_address('veth99', r'inet 192.168.5.[0-9]*/24 brd 192.168.5.255 scope global dynamic', ipv='-4')
         self.wait_address('veth99', r'inet6 2600::[0-9a-f]*/128 scope global (?:dynamic noprefixroute|noprefixroute dynamic)', ipv='-6')
 
-        time.sleep(10)
+        time.sleep(3)
         output = check_output(*resolvectl_cmd, 'dns', 'veth99', env=env)
         print(output)
         self.assertRegex(output, '192.168.5.1')
@@ -2923,7 +2923,7 @@ class NetworkdDHCPClientTests(unittest.TestCase, Utilities):
         self.wait_address('veth99', r'inet 192.168.5.[0-9]*/24 brd 192.168.5.255 scope global dynamic', ipv='-4')
         self.wait_address('veth99', r'inet6 2600::[0-9a-f]*/128 scope global (?:dynamic noprefixroute|noprefixroute dynamic)', ipv='-6')
 
-        time.sleep(10)
+        time.sleep(3)
         output = check_output(*resolvectl_cmd, 'dns', 'veth99', env=env)
         print(output)
         self.assertNotRegex(output, '192.168.5.1')
@@ -2941,7 +2941,7 @@ class NetworkdDHCPClientTests(unittest.TestCase, Utilities):
         self.wait_address('veth99', r'inet 192.168.5.[0-9]*/24 brd 192.168.5.255 scope global dynamic', ipv='-4')
         self.wait_address('veth99', r'inet6 2600::[0-9a-f]*/128 scope global (?:dynamic noprefixroute|noprefixroute dynamic)', ipv='-6')
 
-        time.sleep(10)
+        time.sleep(3)
         output = check_output(*resolvectl_cmd, 'dns', 'veth99', env=env)
         print(output)
         self.assertRegex(output, '192.168.5.1')
@@ -2959,7 +2959,7 @@ class NetworkdDHCPClientTests(unittest.TestCase, Utilities):
         self.wait_address('veth99', r'inet 192.168.5.[0-9]*/24 brd 192.168.5.255 scope global dynamic', ipv='-4')
         self.wait_address('veth99', r'inet6 2600::[0-9a-f]*/128 scope global (?:dynamic noprefixroute|noprefixroute dynamic)', ipv='-6')
 
-        time.sleep(10)
+        time.sleep(3)
         output = check_output(*resolvectl_cmd, 'dns', 'veth99', env=env)
         print(output)
         self.assertRegex(output, '192.168.5.1')