Skip to content

Commit

Permalink
enable base test
Browse files Browse the repository at this point in the history
  • Loading branch information
ManojJiSharma committed Nov 15, 2024
1 parent b9b3cba commit 48b7e98
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
needs: [rustfmt]
strategy:
matrix:
crate: [rosetta-server-astar, rosetta-server-ethereum, rosetta-server-polkadot, rosetta-client, rosetta-testing-arbitrum, rosetta-testing-binance, rosetta-testing-avalanche,]
crate: [rosetta-server-astar, rosetta-server-ethereum, rosetta-server-polkadot, rosetta-client, rosetta-testing-arbitrum, rosetta-testing-binance, rosetta-testing-avalanche, rosetta-server-base,]
name: ${{ matrix.crate }}
runs-on: self-hosted
steps:
Expand Down Expand Up @@ -105,7 +105,15 @@ jobs:
run: |
cd nitro-testnode
./test-node.bash --detach
- name: Checkout Optimism
if: ${{ matrix.crate == 'rosetta-testing-base' }}
run: |
git clone https://github.com/ethereum-optimism/optimism.git
cd optimism
make devnet-up

- name: Setup avalanche-cli node
if: ${{matrix.crate == 'rosetta-testing-avalanche'}}
run: |
Expand Down Expand Up @@ -154,6 +162,7 @@ jobs:
--exclude rosetta-testing-avalanche \
--exclude rosetta-testing-binance \
--exclude rosetta-server-ethereum \
--exclude rosetta-server-base \
--exclude rosetta-server-polkadot \
--exclude rosetta-client \
-- \
Expand Down Expand Up @@ -181,6 +190,7 @@ jobs:
--exclude rosetta-testing-avalanche \
--exclude rosetta-testing-binance \
--exclude rosetta-server-ethereum \
--exclude rosetta-server-base \
--exclude rosetta-server-polkadot \
--exclude rosetta-client
Expand Down
6 changes: 1 addition & 5 deletions chains/base/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ mod tests {
hex!("ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80");

/// Base rpc url
const BASE_RPC_WS_URL: &str = "http://127.0.0.1:8545";
const BASE_RPC_WS_URL: &str = "http://127.0.0.1:9545";

sol! {
interface TestContract {
Expand All @@ -70,7 +70,6 @@ mod tests {

#[tokio::test]
#[serial]
#[ignore = "No Polygon CI"]
async fn network_status() {
run_test(async move {
let client = MaybeWsEthereumClient::new("base", "dev", BASE_RPC_WS_URL, None)
Expand All @@ -97,7 +96,6 @@ mod tests {

#[tokio::test]
#[serial]
#[ignore = "No Polygon CI"]
async fn test_account() {
run_test(async move {
let client = MaybeWsEthereumClient::new(
Expand Down Expand Up @@ -151,7 +149,6 @@ mod tests {

#[tokio::test]
#[serial]
#[ignore = "No Polygon CI"]
async fn test_smart_contract() {
run_test(async move {
let client = MaybeWsEthereumClient::new(
Expand Down Expand Up @@ -205,7 +202,6 @@ mod tests {

#[tokio::test]
#[serial]
#[ignore = "No Polygon CI"]
async fn test_smart_contract_view() {
run_test(async move {
let client = MaybeWsEthereumClient::new(
Expand Down

0 comments on commit 48b7e98

Please sign in to comment.