Skip to content

Commit 9cbd70a

Browse files
committed
tests/network: call ip addr flush with -l 0 option
This test would sometimes flake locally with: Flush remains incomplete after 10 rounds. `ip` defaults to 10 rounds before giving up trying to flush all addresses. Use `-l 0` to make it keep retrying until it succeeds. This makes the test not flaky for me.
1 parent ba39116 commit 9cbd70a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mantle/kola/tests/misc/network.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ func simulateNewInstallation(c cluster.TestCluster, m platform.Machine, macConne
591591
func flushInterfaceIpByMac(c cluster.TestCluster, m platform.Machine, macInterfaceMap map[string]string, macsList []string) {
592592
for _, mac := range macsList {
593593
InterfaceToFlush := macInterfaceMap[mac]
594-
c.MustSSH(m, fmt.Sprintf("sudo ip addr flush dev '%s'", InterfaceToFlush))
594+
c.MustSSH(m, fmt.Sprintf("sudo ip -l 0 addr flush dev '%s'", InterfaceToFlush))
595595
}
596596
}
597597

0 commit comments

Comments
 (0)