gbp: More reliable unit-tests 01/26401/3
authorNeale Ranns <nranns@cisco.com>
Tue, 7 Apr 2020 08:44:20 +0000 (08:44 +0000)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 8 Apr 2020 15:26:33 +0000 (15:26 +0000)
commit8d0d8d2fcccd77e462f30b21f7f8810db312ee62
treefaa0738d068ca92eb036f1ec2ac019944137d590
parent61717cc38f321df3e28464336ac4e570aa47b490
gbp: More reliable unit-tests

Type: fix

the GBP unit tests would peridocially fail. The reason being that there
is dynamic state whose presence nneds to be created, tested and then
timeed out. The failures occurded when the timeout occured before the
state could be tested. the previous timeout was 2 seconds, this has been
doubled, as a result i saw no faliures running continuously for ~16
hours.
bumping the timer increasing the test run time from ~40 to ~53 seconds,
a small price to pay.

in test cases where the state is not timed out i bumped the timer to 60
seconds.

Signed-off-by: Neale Ranns <nranns@cisco.com>
Change-Id: I11b0970570caa8eebf486fe8cd8e44a4b2b1fc36
src/plugins/gbp/test/test_gbp.py