diff options
-rw-r--r-- | changes/bug33782 | 7 | ||||
-rw-r--r-- | src/test/test_connection.h | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/changes/bug33782 b/changes/bug33782 new file mode 100644 index 0000000000..9d4a0e7a79 --- /dev/null +++ b/changes/bug33782 @@ -0,0 +1,7 @@ + o Testing: + - Avoid conflicts between the fake sockets in tor's unit tests, and real + file descriptors. Resolves issues running unit tests with GitHub Actions, + where the process that embeds or launches the tests has already opened a + large number of file descriptors. + Fixes bug 33782; bugfix on 0.2.8.1-alpha. + Found and fixed by Putta Khunchalee. diff --git a/src/test/test_connection.h b/src/test/test_connection.h index 9cf9efb8a4..bf327c0a3d 100644 --- a/src/test/test_connection.h +++ b/src/test/test_connection.h @@ -10,7 +10,7 @@ #define TEST_CONN_ADDRESS_2 "127.0.0.2" #define TEST_CONN_PORT (12345) #define TEST_CONN_ADDRESS_PORT "127.0.0.1:12345" -#define TEST_CONN_FD_INIT 50 +#define TEST_CONN_FD_INIT 0x10000 void test_conn_lookup_addr_helper(const char *address, int family, tor_addr_t *addr); |