Integration test: Fix bond rollback test

The `bond_test.py::test_rollback_for_bond` will randomly fail
as `eth2` might not able to be up in 2 seconds. The fix would be
extend to wait time from 2 seconds to 5 seconds(tested in 100 times).

Signed-off-by: Gris Ge <fge@redhat.com>
This commit is contained in:
Gris Ge 2019-01-16 11:52:24 +08:00
parent 7e32e7e97d
commit 1055409c91

View File

@ -165,7 +165,7 @@ def test_rollback_for_bond(eth1_up, eth2_up):
with pytest.raises(netapplier.DesiredStateIsNotCurrentError):
netapplier.apply(desired_state)
time.sleep(2)
time.sleep(5)
current_state_after_apply = netinfo.show()
assert current_state == current_state_after_apply