update async-std (#388)

This commit is contained in:
Svyatoslav Nikolsky
2020-09-30 14:21:03 +03:00
committed by Bastian Köcher
parent dbb72faa86
commit f43e405b5e
7 changed files with 19 additions and 6 deletions
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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" }
+13
View File
@@ -434,3 +434,16 @@ fn parse_hex_argument(matches: &clap::ArgMatches, arg: &str) -> Result<Option<Ve
None => 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;
});
}
}
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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"