tests: debug the timing issue within "test_connection_test_openwrt_*" tests
There are timing issues with the newly introduced tests in !119 However it works fine on gitlab CI, just not on few different machines (docker and/or lxc container).
Some of these tests (test_connection_test_openwrt_*
) succeeds or fails, based on the order of the tests.
It seems like it is a timing issue involving mqtt, foris-controller and foris-client. Processing on the backend seems to work fine, but some replies from backend arrives too late and are discarded as invalid by foris-client.
For example every second test fails, regardless of the tested values:
tests/blackbox/test_wan.py::test_connection_test_openwrt_failed[openwrt-mqtt-failed] PASSED
tests/blackbox/test_wan.py::test_connection_test_openwrt_ok[openwrt-mqtt-success] FAILED
tests/blackbox/test_wan.py::test_connection_test_openwrt_unknown[openwrt-mqtt-unknown] PASSED
tests/blackbox/test_wan.py::test_connection_test_openwrt_unknown_2[openwrt-mqtt-unknown] FAILED