Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurdubey521 committed Jul 17, 2024
1 parent 1956040 commit ab83a2d
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
5 changes: 4 additions & 1 deletion crates/routing-engine/src/indexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,10 @@ mod tests {
todo!()
}

async fn get_all_key_values(&self) -> Result<HashMap<String, String>, RedisClientError> {
async fn get_all_key_values(
&self,
_: Option<usize>,
) -> Result<HashMap<String, String>, RedisClientError> {
todo!()
}
}
Expand Down
5 changes: 4 additions & 1 deletion crates/routing-engine/src/routing_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,10 @@ mod tests {
unimplemented!()
}

async fn get_all_key_values(&self) -> Result<HashMap<String, String>, RedisClientError> {
async fn get_all_key_values(
&self,
_: Option<usize>,
) -> Result<HashMap<String, String>, RedisClientError> {
unimplemented!()
}
}
Expand Down
5 changes: 4 additions & 1 deletion crates/routing-engine/src/settlement_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,10 @@ mod tests {
unimplemented!()
}

async fn get_all_key_values(&self) -> Result<HashMap<String, String>, RedisClientError> {
async fn get_all_key_values(
&self,
_: Option<usize>,
) -> Result<HashMap<String, String>, RedisClientError> {
unimplemented!()
}
}
Expand Down
7 changes: 5 additions & 2 deletions crates/routing-engine/src/token_price/coingecko.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ mod tests {

use async_trait::async_trait;
use derive_more::Display;
use serial_test::serial;
use thiserror::Error;

use config::{Config, get_sample_config};
use serial_test::serial;
use storage::{KeyValueStore, RedisClientError};

use crate::CoingeckoClient;
Expand Down Expand Up @@ -192,7 +192,10 @@ mod tests {
unimplemented!()
}

async fn get_all_key_values(&self) -> Result<HashMap<String, String>, RedisClientError> {
async fn get_all_key_values(
&self,
_: Option<usize>,
) -> Result<HashMap<String, String>, RedisClientError> {
unimplemented!()
}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/storage/src/redis_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ mod tests {
.unwrap();

// Fetch all key-values
let key_values = client.get_all_key_values().await.unwrap();
let key_values = client.get_all_key_values(None).await.unwrap();

assert_eq!(key_values.get("key1").unwrap(), "value1");
assert_eq!(key_values.get("key2").unwrap(), "value2");
Expand Down

0 comments on commit ab83a2d

Please sign in to comment.