Skip to content

Commit

Permalink
Change port bindings used for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosbento committed Oct 12, 2023
1 parent 7324656 commit 5c84011
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Udp/test/TestSupport.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,19 @@ class MockUDPServer : public BaseMockServer<MockUDPServer> {
*/
struct EnableServersFixture
{
EnableServersFixture() : ecflow_server(42499), ecflow_udp(42498, 42497) {
EnableServersFixture()
: ecflow_server(get_ecflow_server_port()),
ecflow_udp(get_ecflow_udp_port(), get_ecflow_server_port()) {
// Load 'reference' suite for tests...
ecflow_server.load_definition("data/reference.def");
}
~EnableServersFixture() = default;

ecf::test::MockServer ecflow_server;
ecf::test::MockUDPServer ecflow_udp;

static MockServer::port_t get_ecflow_server_port() { return 3199; }
static MockServer::port_t get_ecflow_udp_port() { return 3198; }
};

} // namespace ecf::test
Expand Down

0 comments on commit 5c84011

Please sign in to comment.