Skip to content

Commit 7389e31

Browse files
committed
store: Fix run_test helper
1 parent e675a75 commit 7389e31

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

store/postgres/tests/chain_head.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::fmt::Debug;
66
use std::sync::Arc;
77

88
use graph::components::store::{ChainStore, Store as _};
9-
use graph::prelude::{Future01CompatExt, SubgraphDeploymentId, TryFutureExt};
9+
use graph::prelude::{Future01CompatExt, SubgraphDeploymentId};
1010
use graph_store_postgres::Store as DieselStore;
1111

1212
use test_store::block_store::{
@@ -35,7 +35,7 @@ where
3535
Err(err) => err.into_inner(),
3636
};
3737

38-
let _ = runtime
38+
runtime
3939
.block_on(async {
4040
// Reset state before starting
4141
block_store::remove();
@@ -44,7 +44,7 @@ where
4444
block_store::insert(chain, NETWORK_NAME);
4545

4646
// Run test
47-
test(store).into_future().compat()
47+
test(store).into_future().compat().await
4848
})
4949
.unwrap_or_else(|e| panic!("Failed to run ChainHead test: {:?}", e));
5050
}

store/postgres/tests/relational.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ use std::str::FromStr;
1111
use graph::data::store::scalar::{BigDecimal, BigInt, Bytes};
1212
use graph::prelude::{
1313
bigdecimal::One, web3::types::H256, Entity, EntityCollection, EntityFilter, EntityKey,
14-
EntityOrder, EntityQuery, EntityRange, Future01CompatExt, Schema, SubgraphDeploymentId,
15-
TryFutureExt, Value, ValueType, BLOCK_NUMBER_MAX,
14+
EntityOrder, EntityQuery, EntityRange, Future01CompatExt, Schema, SubgraphDeploymentId, Value,
15+
ValueType, BLOCK_NUMBER_MAX,
1616
};
1717
use graph_store_postgres::layout_for_tests::{Layout, STRING_PREFIX_SIZE};
1818

@@ -304,7 +304,7 @@ where
304304
Err(err) => err.into_inner(),
305305
};
306306

307-
let _ = runtime
307+
runtime
308308
.block_on(async {
309309
// Reset state before starting
310310
remove_test_data(&conn);
@@ -313,7 +313,7 @@ where
313313
let layout = insert_test_data(&conn);
314314

315315
// Run test
316-
test(&conn, &layout).into_future().compat()
316+
test(&conn, &layout).into_future().compat().await
317317
})
318318
.unwrap_or_else(|e| panic!("Failed to run ChainHead test: {:?}", e));
319319
}

store/postgres/tests/store.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ where
132132
Err(err) => err.into_inner(),
133133
};
134134

135-
let _ = runtime
135+
runtime
136136
.block_on(async {
137137
// Reset state before starting
138138
remove_test_data(store.clone());
@@ -141,7 +141,7 @@ where
141141
insert_test_data(store.clone());
142142

143143
// Run test
144-
test(store).into_future().compat()
144+
test(store).into_future().compat().await
145145
})
146146
.unwrap_or_else(|e| panic!("Failed to run Store test: {:?}", e));
147147
}

0 commit comments

Comments
 (0)