summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2024-01-10 20:33:16 +0100
committerGitHub <noreply@github.com>2024-01-10 20:33:16 +0100
commit3df2b718b239327317e5c08044b4aa32b94508dc (patch)
tree0c57a4f4cd2c61618c077e520c926387f278fe75 /test
parentlogind: Mark LidClosed property as "emits change" (diff)
parenttest-network: add test for removal of nexthops that we do not receive reply f... (diff)
downloadsystemd-3df2b718b239327317e5c08044b4aa32b94508dc.tar.xz
systemd-3df2b718b239327317e5c08044b4aa32b94508dc.zip
Merge pull request #30716 from yuwata/network-cancel-request
network: also remove configuration on cancelling request
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-network/systemd-networkd-tests.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py
index 5e26587843..dfa74c203d 100755
--- a/test/test-network/systemd-networkd-tests.py
+++ b/test/test-network/systemd-networkd-tests.py
@@ -4024,7 +4024,11 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
remove_network_unit('25-nexthop-nothing.network', '25-nexthop-dummy-2.network')
copy_network_unit('25-nexthop-1.network', '25-nexthop-dummy-1.network')
- networkctl_reload()
+ # Of course, networkctl_reconfigure() below is unnecessary in normal operation, but it is intentional
+ # here to test reconfiguring with different .network files does not trigger race.
+ # See also comments in link_drop_requests().
+ networkctl_reconfigure('dummy98') # reconfigured with 25-nexthop-dummy-2.network
+ networkctl_reload() # reconfigured with 25-nexthop-dummy-1.network
self.check_nexthop(manage_foreign_nexthops, first=True)