Skip to content

Commit

Permalink
test-network: fix racy test for address_static
Browse files Browse the repository at this point in the history
NFT sets must be installed before starting networkd, otherwise some sets may be
installed too late.

Closes #30427
  • Loading branch information
topimiettinen committed Dec 17, 2023
1 parent 6902da5 commit 1ce2ffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test-network/systemd-networkd-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2562,10 +2562,10 @@ def verify_address_static(

def test_address_static(self):
copy_network_unit('25-address-static.network', '12-dummy.netdev', copy_dropins=False)
start_networkd()
self.setup_nftset('addr4', 'ipv4_addr')
self.setup_nftset('network4', 'ipv4_addr', 'flags interval;')
self.setup_nftset('ifindex', 'iface_index')
start_networkd()

self.wait_online(['dummy98:routable'])

Expand Down

0 comments on commit 1ce2ffa

Please sign in to comment.