lacp: Give LACP a moment to initialize before testing its state, in tests.
authorBen Pfaff <blp@nicira.com>
Tue, 17 Dec 2013 22:14:52 +0000 (14:14 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 17 Dec 2013 22:14:52 +0000 (14:14 -0800)
commitbf24a5f9cd5965767e040d2b3245a7fb289601c6
treef9ef241c9928f1a4099123ace2eca34729559f84
parentaeed7879059792858d27cd22619326dae214047a
lacp: Give LACP a moment to initialize before testing its state, in tests.

These tests configured LACP and then immediately dumped out its state.
Most of the time, this worked, but there was a brief race window in which
the "negotiated" flag could be missing because this took one pass through
the main loop.  This fixes the problem.

This race may be seen in the failures of tests 11 and 12 here:
https://launchpadlibrarian.net/151884888/buildlog_ubuntu-precise-amd64.openvswitch_2.0~201309300804-1ppa1~precise_FAILEDTOBUILD.txt.gz

Reported-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
tests/lacp.at