ci: skip tests with external deps

This commit is contained in:
Georgios Konstantopoulos 2020-06-03 00:16:08 +03:00
parent b0feff2432
commit b47c89455c
No known key found for this signature in database
GPG Key ID: FA607837CD26EDBC
3 changed files with 9 additions and 9 deletions

View File

@ -49,7 +49,8 @@ jobs:
- setup-lints - setup-lints
- setup-sccache - setup-sccache
- restore-sccache-cache - restore-sccache-cache
- run: cargo test --all # skip these temporarily until we get ganache-cli and solc on CI
- run: cargo test --all -- --skip deploy_and_call_contract --skip send_eth
- run: - run:
name: Check style name: Check style
command: | command: |

View File

@ -219,8 +219,7 @@ mod tests {
.topic1(t1) .topic1(t1)
.topic2(t3); .topic2(t3);
dbg!(&filter);
let ser = serialize(&filter).to_string(); let ser = serialize(&filter).to_string();
assert_eq!(ser, "{\"address\":\"0xf817796f60d268a36a57b8d2df1b97b14c0d0e1d\",\"topics\":[\"0xe826f71647b8486f2bae59832124c70792fba044036720a54ec8dacdd5df4fcb\",\"0x0000000000000000000000009729a6fbefefc8f6005933898b13dc45c3a2c8b7\",\"0x000000000000000000000000000000000000000000000000000000000000007b\"]}"); assert_eq!(ser, "{\"address\":\"0xf817796f60d268a36a57b8d2df1b97b14c0d0e1d\",\"topics\":[\"0xe826f71647b8486f2bae59832124c70792fba044036720a54ec8dacdd5df4fcb\",\"0x0000000000000000000000009729a6fbefefc8f6005933898b13dc45c3a2c8b7\",\"0x000000000000000000000000000000000000000000000000000000000000007b\",null]}");
} }
} }

View File

@ -45,12 +45,12 @@ pub mod contract {
/// network type and override the provider's ENS address with the `ens` method. /// network type and override the provider's ENS address with the `ens` method.
/// ///
/// ```rust /// ```rust
/// use ethers::providers::{HttpProvider, networks::Any}; /// use ethers::providers::{Provider, Http};
/// use std::convert::TryFrom; /// use std::convert::TryFrom;
/// use tokio::runtime::Runtime; /// use tokio::runtime::Runtime;
/// ///
/// let provider = HttpProvider::<Any>::try_from( /// let provider = Provider::<Http>::try_from(
/// "https://mainnet.infura.io/v3/9408f47dedf04716a03ef994182cf150" /// "https://mainnet.infura.io/v3/c60b0bb42f8a4c6481ecd229eddaca27"
/// ).unwrap(); /// ).unwrap();
/// ///
/// // Since this is an async function, we need to run it from an async runtime, /// // Since this is an async function, we need to run it from an async runtime,
@ -68,11 +68,11 @@ pub mod contract {
/// follows: /// follows:
/// ///
/// ```rust /// ```rust
/// # use ethers::providers::{HttpProvider, networks::Mainnet}; /// # use ethers::providers::{Provider, Http};
/// # use std::convert::TryFrom; /// # use std::convert::TryFrom;
/// # use tokio::runtime::Runtime; /// # use tokio::runtime::Runtime;
/// # let provider = HttpProvider::<Mainnet>::try_from( /// # let provider = Provider::<Http>::try_from(
/// # "https://mainnet.infura.io/v3/9408f47dedf04716a03ef994182cf150" /// # "https://mainnet.infura.io/v3/c60b0bb42f8a4c6481ecd229eddaca27"
/// # ).unwrap(); /// # ).unwrap();
/// # let mut runtime = Runtime::new().expect("Failed to create Tokio runtime"); /// # let mut runtime = Runtime::new().expect("Failed to create Tokio runtime");
/// // Resolve ENS name to Address /// // Resolve ENS name to Address