selftests: fib_tests: sleep after changing carrier. again.
Just like commit e2ba732a1681 ("selftests: fib_tests: sleep after
changing carrier"), wait one second to allow linkwatch to propagate the
carrier change to the stack.
There are two sets of carrier tests. The first slept after the carrier
was set to off, and when the second set ran, it was likely that the
linkwatch would be able to run again without much delay, reducing the
likelihood of a race. However, if you run 'fib_tests.sh -t carrier' on a
loop, you will quickly notice the failures.
Sleeping on the second set of tests make the failures go away.
Cc: David Ahern <email@example.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <firstname.lastname@example.org>
Reviewed-by: David Ahern <email@example.com>
Signed-off-by: David S. Miller <firstname.lastname@example.org>
1 file changed