Skip to content

Commit

Permalink
Merge branch 'add-builder-to-binance' of github.com:bandprotocol/both…
Browse files Browse the repository at this point in the history
…an into add-builder-to-binance
  • Loading branch information
warittornc committed Feb 29, 2024
2 parents 084f556 + 1229f7d commit 1e1146d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bothan-coingecko/src/api/rest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pub(crate) mod test {
(server, api)
}

pub(crate) trait MockGecko {
pub(crate) trait MockCoinGecko {
fn set_successful_coin_list(&mut self, coin_list: &[Coin]) -> Mock;
fn set_failed_coin_list(&mut self) -> Mock;
fn set_successful_coins_market(&mut self, ids: &[&str], market: &[Market]) -> Vec<Mock>;
Expand All @@ -94,7 +94,7 @@ pub(crate) mod test {
fn set_failed_coins_market(&mut self, ids: &[&str]) -> Mock;
}

impl MockGecko for ServerGuard {
impl MockCoinGecko for ServerGuard {
fn set_successful_coin_list(&mut self, coin_list: &[Coin]) -> Mock {
self.mock("GET", "/coins/list")
.with_status(200)
Expand Down
2 changes: 1 addition & 1 deletion bothan-coingecko/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ fn parse_market(market: &Market) -> Result<PriceData, Error> {
mod test {
use mockito::ServerGuard;

use crate::api::rest::test::{setup as api_setup, MockGecko};
use crate::api::rest::test::{setup as api_setup, MockCoinGecko};
use crate::api::types::Coin;

use super::*;
Expand Down

0 comments on commit 1e1146d

Please sign in to comment.