diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 47fb08abf9..b4782f409d 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -5,6 +5,7 @@ on: [push, pull_request] jobs: macos_test: name: macOS [${{ matrix.BACKEND }}] + timeout-minutes: 300 strategy: fail-fast: false matrix: @@ -31,6 +32,9 @@ jobs: id: build run: ci/build-tests.sh + - name: Setup upterm session + uses: lhotari/action-upterm@v1 + - name: Core Tests if: steps.build.outcome == 'success' && (success() || failure()) run: ../ci/tests/run-core-tests.sh diff --git a/nano/node/transport/socket.cpp b/nano/node/transport/socket.cpp index 4acf2253f1..cac026b0ad 100644 --- a/nano/node/transport/socket.cpp +++ b/nano/node/transport/socket.cpp @@ -32,11 +32,12 @@ nano::transport::socket::socket (nano::node & node_a, endpoint_type_t endpoint_t silent_connection_tolerance_time{ node_a.network_params.network.silent_connection_tolerance_time }, max_queue_size{ max_queue_size_a } { + created = true; } nano::transport::socket::~socket () { - // close_internal (); + created = false; } void nano::transport::socket::start () diff --git a/nano/node/transport/socket.hpp b/nano/node/transport/socket.hpp index 91f7d008fc..5c72e776b3 100644 --- a/nano/node/transport/socket.hpp +++ b/nano/node/transport/socket.hpp @@ -205,6 +205,8 @@ class socket final : public std::enable_shared_from_this