Skip to content

Commit 0c635b3

Browse files
committed
feature: update integ tests to use full test
1 parent 8b5cc2f commit 0c635b3

4 files changed

Lines changed: 19 additions & 13 deletions

File tree

.github/workflows/integ-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ jobs:
164164
done
165165
166166
- name: Run end-to-end integration tests
167-
run: cargo run --bin integration-tests deposit-test 5000 && cargo run --bin integration-tests withdrawal-test 2500
167+
run: cargo run --bin integration-tests test
168168

169169
- name: Shutdown stack & print logs
170170
run: |

crates/node/src/handlers/consensus/handler.rs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,18 @@ impl<N: Network, W: Wallet> Handler<N, W> for ConsensusState {
104104
})
105105
.await;
106106
}
107-
ConsensusNetMessage::BlockProposal { proposer, raw_block } => {
107+
ConsensusNetMessage::BlockProposal {
108+
proposer,
109+
raw_block,
110+
} => {
108111
let _ = node
109112
.consensus_interface_tx
110-
.send_message_with_response(ConsensusMessage::HandleBlockProposal {
111-
sender: proposer,
112-
raw_block,
113-
})
113+
.send_message_with_response(
114+
ConsensusMessage::HandleBlockProposal {
115+
sender: proposer,
116+
raw_block,
117+
},
118+
)
114119
.await;
115120
}
116121
},

crates/types/src/consensus.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,13 @@ impl ProtoEncode for ConsensusMessage {
6060
VoteType::Precommit => p2p_proto::VoteType::Precommit as i32,
6161
},
6262
}),
63-
Self::BlockProposal { proposer, raw_block } => {
64-
p2p_proto::consensus_message::Message::BlockProposal(p2p_proto::BlockProposal {
65-
proposer: proposer.clone(),
66-
raw_block: raw_block.clone(),
67-
})
68-
}
63+
Self::BlockProposal {
64+
proposer,
65+
raw_block,
66+
} => p2p_proto::consensus_message::Message::BlockProposal(p2p_proto::BlockProposal {
67+
proposer: proposer.clone(),
68+
raw_block: raw_block.clone(),
69+
}),
6970
};
7071

7172
let consensus_msg = p2p_proto::ConsensusMessage {

tests/src/bin/integration-tests/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct Cli {
2929
enum Commands {
3030
/// Run all integration tests
3131
Test {
32-
#[arg(short, long, default_value_t = 1000)]
32+
#[arg(short, long, default_value_t = 5000)]
3333
amount: u64,
3434
#[arg(short, long, default_value_t = false)]
3535
use_testnet: bool,

0 commit comments

Comments
 (0)