test: Remove explicit sleeps from ofproto-dpif bond tests
authorAndy Zhou <azhou@nicira.com>
Fri, 6 Jun 2014 22:36:14 +0000 (15:36 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 3 Apr 2015 03:01:31 +0000 (20:01 -0700)
commit805c67d12464cb76c6e332f328af075ff9d65f5b
tree09e81b5718464aa518b7caae8d40a3a2afe673d4
parent0b4d832206bc30f211de790f6392c778a16966af
test: Remove explicit sleeps from ofproto-dpif bond tests

Ofproto-dpif bond tests relies on netdev-dummy ports to set up
socket connection before actual tests. The time required
for socket connection varies depends on system load, making the test
prone to failure with simple sleep calls. On the other hand,
conservative sleep value for the slowest machine may be excessive on
a faster machine.

This patch removes the sleep calls. Replace them with
WAIT_FOR_DUMMY_PORTS() introduced in the last patch, thus removing
the timing dependency.

CC: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
tests/ofproto-dpif.at