Use tokio instead of async-std (#495)

* examples: Use tokio instead of std async

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* test-runtime: Use tokio instead of std async

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* subxt: Use tokio instead of std async

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* examples: Use only necessary tokio features

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
Alexandru Vasile
2022-04-01 17:57:15 +03:00
committed by GitHub
parent cc0b1ec84a
commit 6ce9983506
25 changed files with 69 additions and 69 deletions
+3 -3
View File
@@ -326,7 +326,7 @@ mod test {
.map(Ok::<_, BasicError>)
}
#[async_std::test]
#[tokio::test]
async fn filter_one_event_from_stream() {
let metadata = metadata::<PalletEvents>();
@@ -358,7 +358,7 @@ mod test {
assert_eq!(actual, expected);
}
#[async_std::test]
#[tokio::test]
async fn filter_some_events_from_stream() {
let metadata = metadata::<PalletEvents>();
@@ -406,7 +406,7 @@ mod test {
assert_eq!(actual, expected);
}
#[async_std::test]
#[tokio::test]
async fn filter_no_events_from_stream() {
let metadata = metadata::<PalletEvents>();