Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
noot committed May 14, 2024
1 parent 85f24df commit e540615
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
9 changes: 9 additions & 0 deletions crates/astria-conductor/tests/blackbox/helpers/mock_grpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ use astria_core::generated::{
},
FilteredSequencerBlock,
GetFilteredSequencerBlockRequest,
GetPendingNonceRequest,
GetSequencerBlockRequest,
PendingNonce,
SequencerBlock,
},
};
Expand Down Expand Up @@ -110,6 +112,13 @@ impl SequencerService for SequencerServiceImpl {
.handle_request("get_filtered_sequencer_block", request)
.await
}

async fn get_pending_nonce(
self: Arc<Self>,
_request: Request<GetPendingNonceRequest>,
) -> tonic::Result<Response<PendingNonce>> {
unimplemented!()
}
}

macro_rules! define_and_impl_service {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ use astria_core::{
},
FilteredSequencerBlock as RawFilteredSequencerBlock,
GetFilteredSequencerBlockRequest,
GetPendingNonceRequest,
GetSequencerBlockRequest,
PendingNonce,
SequencerBlock as RawSequencerBlock,
},
primitive::v1::RollupId,
Expand Down Expand Up @@ -125,6 +127,13 @@ impl SequencerService for SequencerServiceImpl {
.handle_request(GET_FILTERED_SEQUENCER_BLOCK_GRPC_NAME, request)
.await
}

async fn get_pending_nonce(
self: Arc<Self>,
_request: Request<GetPendingNonceRequest>,
) -> Result<Response<PendingNonce>, Status> {
unimplemented!()
}
}

fn prepare_sequencer_block_response<const RELAY_SELF: bool>(
Expand Down
2 changes: 1 addition & 1 deletion crates/astria-sequencer/src/grpc/sequencer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ mod test {
#[tokio::test]
async fn get_pending_nonce_in_storage() {
use crate::accounts::state_ext::StateWriteExt as _;

let storage = cnidarium::TempStorage::new().await.unwrap();
let mempool = Mempool::new();
let mut state_tx = StateDelta::new(storage.latest_snapshot());
Expand Down

0 comments on commit e540615

Please sign in to comment.