Skip to content

Commit

Permalink
chore: Remove unrelated wrapper suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
morgsmccauley committed Jun 25, 2024
1 parent 9bd813f commit 2c6f4e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions block-streamer/src/block_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ mod tests {
.expect_list_matching_block_heights()
.returning(|_, _| Ok(vec![107503702, 107503703]));

let mut mock_redis_wrapper = crate::redis::RedisClient::default();
mock_redis_wrapper
let mut mock_redis = crate::redis::RedisClient::default();
mock_redis
.expect_publish_block()
.with(
predicate::always(),
Expand All @@ -363,19 +363,19 @@ mod tests {
)
.returning(|_, _, _, _| Ok(()))
.times(3);
mock_redis_wrapper
mock_redis
.expect_set_last_processed_block()
.with(
predicate::always(),
predicate::in_iter([107503702, 107503703, 107503704, 107503705]),
)
.returning(|_, _| Ok(()))
.times(4);
mock_redis_wrapper
mock_redis
.expect_cache_streamer_message()
.with(predicate::always())
.returning(|_| Ok(()));
mock_redis_wrapper
mock_redis
.expect_get_stream_length()
.with(predicate::eq("stream key".to_string()))
.returning(|_| Ok(Some(10)));
Expand All @@ -395,7 +395,7 @@ mod tests {
start_block_stream(
91940840,
&indexer_config,
std::sync::Arc::new(mock_redis_wrapper),
std::sync::Arc::new(mock_redis),
std::sync::Arc::new(mock_delta_lake_client),
mock_lake_s3_client,
&ChainId::Mainnet,
Expand Down
4 changes: 2 additions & 2 deletions block-streamer/src/server/block_streamer_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,15 +206,15 @@ mod tests {
.expect_list_matching_block_heights()
.returning(|_, _| Ok(vec![]));

let mock_redis_wrapper = crate::redis::RedisClient::default();
let mock_redis = crate::redis::RedisClient::default();

let mut mock_lake_s3_client = crate::lake_s3_client::SharedLakeS3Client::default();
mock_lake_s3_client
.expect_clone()
.returning(crate::lake_s3_client::SharedLakeS3Client::default);

BlockStreamerService::new(
std::sync::Arc::new(mock_redis_wrapper),
std::sync::Arc::new(mock_redis),
std::sync::Arc::new(mock_delta_lake_client),
mock_lake_s3_client,
)
Expand Down

0 comments on commit 2c6f4e9

Please sign in to comment.