CfgIfaceTest UTs fail frequently under 22.04 VM
Several of the dhcpsrv/"CfgIfaceTest.*" tests fail sporadically for me on Ubuntu 22.04 VM:
[ OK ] CfgIfaceTest.retryOpenServiceSockets4 (104 ms)
[ RUN ] CfgIfaceTest.retryOpenServiceSockets4OmitBound
cfg_iface_unittest.cc:752: Failure
Expected equality of these values:
(RETRIES + 1) + 1
Which is: 7
total_calls
Which is: 5
[ FAILED ] CfgIfaceTest.retryOpenServiceSockets4OmitBound (107 ms)
[ RUN ] CfgIfaceTest.retryDoubleOpenServiceSockets4
[ OK ] CfgIfaceTest.retryDoubleOpenServiceSockets4 (71 ms)
[ RUN ] CfgIfaceTest.retryOpenServiceSockets6
cfg_iface_unittest.cc:879: Failure
Expected equality of these values:
CALLS_PER_RETRY * (RETRIES + 1)
Which is: 18
total_calls
Which is: 9
[ FAILED ] CfgIfaceTest.retryOpenServiceSockets6 (106 ms)
[ RUN ] CfgIfaceTest.retryOpenServiceSockets6OmitBound
cfg_iface_unittest.cc:957: Failure
Expected equality of these values:
(RETRIES + 1) + opened_by_eth0
Which is: 9
total_calls
Which is: 5
[ FAILED ] CfgIfaceTest.retryOpenServiceSockets6OmitBound (102 ms)
[ RUN ] CfgIfaceTest.retryDoubleOpenServiceSockets6
[ OK ] CfgIfaceTest.retryDoubleOpenServiceSockets6 (65 ms)
[----------] 20 tests from CfgIfaceTest (572 ms total)
[----------] Global test environment tear-down
[==========] 20 tests from 1 test suite ran. (573 ms total)
[ PASSED ] 17 tests.
[ FAILED ] 3 tests, listed below:
[ FAILED ] CfgIfaceTest.retryOpenServiceSockets4OmitBound
[ FAILED ] CfgIfaceTest.retryOpenServiceSockets6
[ FAILED ] CfgIfaceTest.retryOpenServiceSockets6OmitBound[ OK ] CfgIfaceTest.retryOpenServiceSockets4 (104 ms)
[ RUN ] CfgIfaceTest.retryOpenServiceSockets4OmitBound
cfg_iface_unittest.cc:752: Failure
Expected equality of these values:
(RETRIES + 1) + 1
Which is: 7
total_calls
Which is: 5
[ FAILED ] CfgIfaceTest.retryOpenServiceSockets4OmitBound (107 ms)
[ RUN ] CfgIfaceTest.retryDoubleOpenServiceSockets4
[ OK ] CfgIfaceTest.retryDoubleOpenServiceSockets4 (71 ms)
[ RUN ] CfgIfaceTest.retryOpenServiceSockets6
cfg_iface_unittest.cc:879: Failure
Expected equality of these values:
CALLS_PER_RETRY * (RETRIES + 1)
Which is: 18
total_calls
Which is: 9
[ FAILED ] CfgIfaceTest.retryOpenServiceSockets6 (106 ms)
[ RUN ] CfgIfaceTest.retryOpenServiceSockets6OmitBound
cfg_iface_unittest.cc:957: Failure
Expected equality of these values:
(RETRIES + 1) + opened_by_eth0
Which is: 9
total_calls
Which is: 5
[ FAILED ] CfgIfaceTest.retryOpenServiceSockets6OmitBound (102 ms)
[ RUN ] CfgIfaceTest.retryDoubleOpenServiceSockets6
[ OK ] CfgIfaceTest.retryDoubleOpenServiceSockets6 (65 ms)
[----------] 20 tests from CfgIfaceTest (572 ms total)
[----------] Global test environment tear-down
[==========] 20 tests from 1 test suite ran. (573 ms total)
[ PASSED ] 17 tests.
[ FAILED ] 3 tests, listed below:
[ FAILED ] CfgIfaceTest.retryOpenServiceSockets4OmitBound
[ FAILED ] CfgIfaceTest.retryOpenServiceSockets6
[ FAILED ] CfgIfaceTest.retryOpenServiceSockets6OmitBound
This is a sample. The number of tests which fail changes run to run.