Skip to content

Commit 8f03555

Browse files
kuba-mooNipaLocal
authored andcommitted
test: rtnetlink: try double sleep to give WQ a chance
Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: NipaLocal <nipa@local>
1 parent 1a629a3 commit 8f03555

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/testing/selftests/net/rtnetlink.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,11 @@ kci_test_addrlft()
299299
done
300300

301301
sleep 5
302+
# Schedule out for a bit, address GC runs from the power efficient WQ
303+
# if the long sleep above has put the whole system into sleep state
304+
# the WQ may have not had a chance to run.
305+
sleep 1.2
306+
302307
ip addr show dev "$devdummy" > /tmp/a
303308
run_cmd_grep_fail "10.23.11." cat /tmp/a
304309
if [ $? -eq 0 ]; then

0 commit comments

Comments
 (0)