diff --git a/bridges/modules/message-lane/rpc/Cargo.toml b/bridges/modules/message-lane/rpc/Cargo.toml index 843cfe6e24fe3..2a374fd79363e 100644 --- a/bridges/modules/message-lane/rpc/Cargo.toml +++ b/bridges/modules/message-lane/rpc/Cargo.toml @@ -48,7 +48,7 @@ tag = 'v2.0.0' git = "https://github.com/paritytech/substrate/" [dev-dependencies] -async-std = "1.6.2" +async-std = "1.6.5" [dev-dependencies.substrate-test-runtime-client] version = "2.0.0" diff --git a/bridges/relays/ethereum/Cargo.toml b/bridges/relays/ethereum/Cargo.toml index 15feebd70fd2b..9a22379fa3f2e 100644 --- a/bridges/relays/ethereum/Cargo.toml +++ b/bridges/relays/ethereum/Cargo.toml @@ -7,7 +7,7 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0" [dependencies] ansi_term = "0.12" -async-std = "1.6.2" +async-std = "1.6.5" async-trait = "0.1.40" bp-currency-exchange = { path = "../../primitives/currency-exchange" } bp-eth-poa = { path = "../../primitives/ethereum-poa" } diff --git a/bridges/relays/ethereum/src/main.rs b/bridges/relays/ethereum/src/main.rs index 9b290df43c45d..20f18c3310c61 100644 --- a/bridges/relays/ethereum/src/main.rs +++ b/bridges/relays/ethereum/src/main.rs @@ -434,3 +434,16 @@ fn parse_hex_argument(matches: &clap::ArgMatches, arg: &str) -> Result Ok(None), } } + +#[cfg(test)] +mod tests { + + // Details: https://github.com/paritytech/parity-bridges-common/issues/118 + #[test] + fn async_std_sleep_works() { + let mut local_pool = futures::executor::LocalPool::new(); + local_pool.run_until(async move { + async_std::task::sleep(std::time::Duration::from_secs(1)).await; + }); + } +} diff --git a/bridges/relays/exchange-relay/Cargo.toml b/bridges/relays/exchange-relay/Cargo.toml index 87502fe6a6e5f..62e7a029bbb2c 100644 --- a/bridges/relays/exchange-relay/Cargo.toml +++ b/bridges/relays/exchange-relay/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" license = "GPL-3.0-or-later WITH Classpath-exception-2.0" [dependencies] -async-std = "1.6.2" +async-std = "1.6.5" async-trait = "0.1.40" backoff = "0.2" futures = "0.3.5" diff --git a/bridges/relays/headers-relay/Cargo.toml b/bridges/relays/headers-relay/Cargo.toml index e289ac984fb86..31d3166a99781 100644 --- a/bridges/relays/headers-relay/Cargo.toml +++ b/bridges/relays/headers-relay/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" license = "GPL-3.0-or-later WITH Classpath-exception-2.0" [dependencies] -async-std = "1.6.2" +async-std = "1.6.5" async-trait = "0.1.40" backoff = "0.2" futures = "0.3.5" diff --git a/bridges/relays/messages-relay/Cargo.toml b/bridges/relays/messages-relay/Cargo.toml index 0af7eddc551fc..f876b387424fb 100644 --- a/bridges/relays/messages-relay/Cargo.toml +++ b/bridges/relays/messages-relay/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" license = "GPL-3.0-or-later WITH Classpath-exception-2.0" [dependencies] -async-std = "1.6.2" +async-std = "1.6.5" async-trait = "0.1.40" futures = "0.3.5" log = "0.4.11" diff --git a/bridges/relays/utils/Cargo.toml b/bridges/relays/utils/Cargo.toml index 029fdd4547d07..c456e5cc62319 100644 --- a/bridges/relays/utils/Cargo.toml +++ b/bridges/relays/utils/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" license = "GPL-3.0-or-later WITH Classpath-exception-2.0" [dependencies] -async-std = "1.6.2" +async-std = "1.6.5" backoff = "0.2" futures = "0.3.5" log = "0.4.11"