tests: Fix race in 'balance-tcp bonding' test.
authorJoe Stringer <joestringer@nicira.com>
Fri, 4 Jul 2014 06:58:28 +0000 (06:58 +0000)
committerBen Pfaff <blp@nicira.com>
Fri, 3 Apr 2015 03:01:47 +0000 (20:01 -0700)
commit81a82ca53b086482095f05862ab84f0b1da072c4
treea4af6ec574eaeda2e14886e409f162cffabe583e
parent805c67d12464cb76c6e332f328af075ff9d65f5b
tests: Fix race in 'balance-tcp bonding' test.

Running the test in a tight loop could cause this test to fail after
about 5 runs, with some of the ports reporting "may_enable: false" in
the "ovs-appctl bond/show" output. This commit fixes the race condition
by waiting for may_enable to be true for all bond ports.

I suspect that LACP negotiation finishes, but the main thread doesn't
have a chance to enable the ports before we send the test packets.

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
tests/ofproto-dpif.at