Skip to content

Commit

Permalink
remove grpc mock changes after rebasing on main
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperFluffy committed Feb 4, 2025
1 parent 98d04a8 commit f5051d5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/astria-conductor/tests/blackbox/helpers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ impl TestConductor {
&self,
mock_name: Option<&str>,
commitment_state: CommitmentState,
expected_calls: impl Into<astria_grpc_mock::mock::Times>,
expected_calls: impl Into<astria_grpc_mock::Times>,
) -> astria_grpc_mock::MockGuard {
use astria_core::generated::astria::execution::v1::UpdateCommitmentStateRequest;
use astria_grpc_mock::{
Expand Down
2 changes: 1 addition & 1 deletion crates/astria-grpc-mock/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use std::any::Any;

pub mod matcher;
pub mod mock;
mod mock;
mod mock_server;
mod mock_set;
mod mounted_mock;
Expand Down
2 changes: 0 additions & 2 deletions crates/astria-grpc-mock/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,13 @@ pub struct MockBuilder {
impl MockBuilder {
/// Adds an additional `Matcher` to the [`MockBuilder`]'s `matchers` set. There is no maximum
/// number of matchers that can be pushed. See [`MockBuilder`] docs for example usage.
#[must_use]
pub fn and(mut self, matcher: impl Match + 'static) -> Self {
self.matchers.push(Matcher(Box::new(matcher)));
self
}

/// Returns a [`Mock`] which will respond with the given [`ResponseTemplate`]'s `respond()`
/// implementation. See [`MockBuilder`] docs for example usage.
#[must_use]
pub fn respond_with(self, rsp: ResponseTemplate) -> Mock {
let Self {
rpc,
Expand Down

0 comments on commit f5051d5

Please sign in to comment.