mit-dci / opencbdc-tx

A transaction processor for a hypothetical, general-purpose, central bank digital currency
Other
896 stars 198 forks source link

8 tests fail when running tests locally on MacOS #291

Open eolesinski opened 1 month ago

eolesinski commented 1 month ago

Affected Branch

Affected Branch: trunk

When running ./scripts/test.sh locally on macOS Sonoma 14.5, M3 Max 8 tests fail.

Specifically, when the test script completes, this is the result:

[----------] Global test environment tear-down
[==========] 257 tests from 37 test suites ran. (35554 ms total)
[  PASSED  ] 249 tests.
[  FAILED  ] 8 tests, listed below:
[  FAILED  ] tcp_rpc_test.echo_test
[  FAILED  ] tcp_rpc_test.response_error_test
[  FAILED  ] tcp_rpc_test.timeout_test
[  FAILED  ] tcp_rpc_test.no_callback_test
[  FAILED  ] tcp_rpc_test.cancel_test
[  FAILED  ] tcp_rpc_test.async_echo_test
[  FAILED  ] tcp_rpc_test.async_error_test
[  FAILED  ] sentinel_2pc_test.bad_rpc_server_endpoint

An isolated run of tcp_rpc_test.cancel_test returns:

Value of: server.listen(ep.first, ep.second)
  Actual: false
Expected: true

An isolated run of the last test sentinel_2pc_test.bad_rpc_server_endpoint returns:

Value of: ctl->init()
  Actual: true
Expected: false

An isolated run of the other six of the failing tests all return:

Value of: server.init()
  Actual: false
Expected: true

Basic Diagnostics

Description

In order to reproduce the issue, follow these steps:

  1. Run ./scripts/test.sh

Code of Conduct

maurermi commented 1 month ago

Was able to replicate this just now on the same hardware / OS. To get to this point in the test, one needs to make the changes specified in #290 (on a Mac)