Fix failures in real_encode_with_server.
authorCarl Hetherington <cth@carlh.net>
Mon, 29 Apr 2024 08:49:22 +0000 (10:49 +0200)
committerCarl Hetherington <cth@carlh.net>
Mon, 29 Apr 2024 13:48:11 +0000 (15:48 +0200)
This test suddenly started failing because the server is never found,
so never encodes any frames.

It's a mystery why this started failing, and even more of a mystery
why there seem to be two distinct reasons.

Some failures were apparently due to firewalld blocking UDP broadcast;
disabling the firewall would make the test pass again.

Other failures were apparently caused by an old EncodeServerFinder
hanging around, presumably finding servers before a new one had the
chance.

test/client_server_test.cc

index 1bfa4c5a61825350e544cdb107831d3f458decfb..64a77415ac19bf33501b9052698a9bab44e49ede 100644 (file)
@@ -311,6 +311,8 @@ BOOST_AUTO_TEST_CASE (client_server_test_j2k)
 
        server->stop ();
        server_thread.join();
+
+       EncodeServerFinder::drop();
 }