From 622c231ec2c497b262f34b9b15678f651d4de007 Mon Sep 17 00:00:00 2001 From: Francisco Tobar Date: Fri, 27 Oct 2023 09:03:21 -0600 Subject: [PATCH] fix: fix ci by starting dev-ticker --- .github/workflows/ci-iov.yml | 8 ++++---- .../src/bin/providers/proxy_price_provider.rs | 15 +-------------- 2 files changed, 5 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci-iov.yml b/.github/workflows/ci-iov.yml index 8329efa79..f6ff633a5 100644 --- a/.github/workflows/ci-iov.yml +++ b/.github/workflows/ci-iov.yml @@ -49,8 +49,8 @@ jobs: ci_run zk ci_run zk init - - name: restart dev-ticker - run: docker-compose -f docker-compose.ci.yml up dev-ticker + - name: start dev-ticker + run: docker-compose -f docker-compose.ci.yml up -d dev-ticker - name: Toolchain info run: | @@ -85,8 +85,8 @@ jobs: ci_run zk ci_run zk init - - name: restart dev-ticker - run: docker-compose -f docker-compose.ci.yml restart dev-ticker + - name: start dev-ticker + run: docker-compose -f docker-compose.ci.yml up -d dev-ticker - name: run-services run: | diff --git a/core/bin/zksync_api/src/bin/providers/proxy_price_provider.rs b/core/bin/zksync_api/src/bin/providers/proxy_price_provider.rs index 6b2ca4d4b..9fca7376b 100644 --- a/core/bin/zksync_api/src/bin/providers/proxy_price_provider.rs +++ b/core/bin/zksync_api/src/bin/providers/proxy_price_provider.rs @@ -105,9 +105,8 @@ mod fetch_coins_list_tests { let body: Vec = serde_json::from_slice(&body_bytes).unwrap(); let rif_token = body.iter().find(|coin| coin.id == "rif-token").unwrap(); - let rbtc = body.iter().find(|coin| coin.id == "rootstock").unwrap(); - assert_eq!(body.len(), 2); + assert_eq!(body.len(), 1); assert_eq!(rif_token.name, "RIF Token"); assert_eq!(rif_token.symbol, "TRIF"); assert_eq!( @@ -121,17 +120,5 @@ mod fetch_coins_list_tests { .unwrap(), RIF_TOKEN_TESTNET_ADDRESS ); - assert_eq!(rbtc.name, "Rootstock RSK"); - assert_eq!(rbtc.symbol, "TRBTC"); - assert_eq!( - rbtc.platforms - .as_ref() - .unwrap() - .get("rootstock") - .unwrap() - .as_ref() - .unwrap(), - RIF_TOKEN_TESTNET_ADDRESS - ); } }