Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hack: set_receipient earlier to avoid a race condition
It seems that we have a race-condition pre-existing on master: ```diff diff --git a/tools/mock_node/src/setup.rs b/tools/mock_node/src/setup.rs index 501722c07..0378cf0f9 100644 --- a/tools/mock_node/src/setup.rs +++ b/tools/mock_node/src/setup.rs @@ -342,6 +342,7 @@ pub fn setup_mock_node( #[cfg(feature = "test_features")] let server = None; + std::thread::sleep_ms(300); network_adapter.set_recipient(mock_network_actor.clone().recipient()); (mock_network_actor, client_actor, view_client, server) } ``` and then ``` $ cargo test -p mock_node --lib -- test_mock_node_basic ``` fail for me. THe current actix upgrade seems to exacebrate the issues, alegedly because start_http now takes longer. Work-around this by tying the know earlier.
- Loading branch information