Skip to content

Commit

Permalink
Merge branch 'stefan/failing_connection_test' into 'master'
Browse files Browse the repository at this point in the history
fix: disable failing bitcoin adapter timeout test

`initialization_times_out_after_five_seconds` was simulating an unresponsive peer by using a non routable ip address. This is wrong and the test now fails. 

See merge request dfinity-lab/public/ic!14015
  • Loading branch information
rumenov committed Aug 8, 2023
2 parents 99d52f9 + 8052ad6 commit 0a393ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rs/bitcoin/adapter/src/stream.rs
Expand Up @@ -429,8 +429,7 @@ pub mod test {

/// Test that connection initialization times out in 5 seconds, to ensure the connection attempts
/// in the connection manager do not hang for a long period of time.
#[tokio::test]
async fn initialization_times_out_after_five_seconds() {
async fn _initialization_times_out_after_five_seconds() {
let network = Network::Bitcoin;
let (net_tx, _) = tokio::sync::mpsc::channel(DEFAULT_CHANNEL_BUFFER_SIZE);
let (_adapter_tx, adapter_rx) = tokio::sync::mpsc::unbounded_channel();
Expand Down

0 comments on commit 0a393ef

Please sign in to comment.