Skip to content

Commit d00f566

Browse files
mkp-rhigsilya
authored andcommitted
tests: Ignore "Connection refused" in learning-switch test.
After terminating ovs-testcontroller, vswitchd may attempt to reconnect before test cleanup completes resulting in a "Connection refused" log message and the test to fail. This can be reliably reproduced by inserting a 1-second sleep before log checking. This patch filters out "Connection refused" messages for check_log to prevent erroneous test failures. Reported-at: https://redhat.atlassian.net/browse/FDP-1813 Fixes: 70ba6e9 ("learning-switch: Fix coredump of OpenFlow15 learning-switch.") Acked-by: Eelco Chaudron <echaudron@ovn.org> Signed-off-by: Mike Pattrick <mkp@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
1 parent 73a477d commit d00f566

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎tests/learning-switch.at‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ AT_CHECK([
1919
AT_CHECK([kill `cat ovs-testcontroller.pid`])
2020

2121
OVS_WAIT_UNTIL([! test -e controller])
22-
OVS_VSWITCHD_STOP(["/cannot find route for controller/d"])
22+
OVS_VSWITCHD_STOP(["/cannot find route for controller/d
23+
/Connection refused/d"])
2324
AT_CLEANUP

0 commit comments

Comments
 (0)