@@ -15,8 +15,9 @@ use graph_store_postgres::Store as DieselStore;
1515use graph_store_postgres:: { layout_for_tests:: FAKE_NETWORK_SHARED , ChainStore as DieselChainStore } ;
1616
1717use test_store:: block_store:: {
18- Chain , FakeBlock , BLOCK_FIVE , BLOCK_FOUR , BLOCK_ONE , BLOCK_ONE_NO_PARENT , BLOCK_ONE_SIBLING ,
19- BLOCK_THREE , BLOCK_THREE_NO_PARENT , BLOCK_TWO , BLOCK_TWO_NO_PARENT , GENESIS_BLOCK , NO_PARENT ,
18+ FakeBlock , FakeBlockList , BLOCK_FIVE , BLOCK_FOUR , BLOCK_ONE , BLOCK_ONE_NO_PARENT ,
19+ BLOCK_ONE_SIBLING , BLOCK_THREE , BLOCK_THREE_NO_PARENT , BLOCK_TWO , BLOCK_TWO_NO_PARENT ,
20+ GENESIS_BLOCK , NO_PARENT ,
2021} ;
2122use test_store:: * ;
2223
@@ -25,7 +26,7 @@ use test_store::*;
2526const ANCESTOR_COUNT : BlockNumber = 3 ;
2627
2728/// Test harness for running database integration tests.
28- fn run_test < F > ( chain : Chain , test : F )
29+ fn run_test < F > ( chain : FakeBlockList , test : F )
2930where
3031 F : Fn ( Arc < DieselChainStore > , Arc < DieselStore > ) -> Result < ( ) , Error > + Send + ' static ,
3132{
4243 } ) ;
4344}
4445
45- fn run_test_async < R , F > ( chain : Chain , test : F )
46+ fn run_test_async < R , F > ( chain : FakeBlockList , test : F )
4647where
4748 F : Fn ( Arc < DieselChainStore > , Arc < DieselStore > ) -> R + Send + Sync + ' static ,
4849 R : Future < Output = ( ) > + Send + ' static ,
6566/// is the one indicated in `head_exp`. If `missing` is not `None`, check that
6667/// `attempt_chain_head_update` reports that block as missing
6768fn check_chain_head_update (
68- chain : Chain ,
69+ chain : FakeBlockList ,
6970 head_exp : Option < & ' static FakeBlock > ,
7071 missing : Option < & ' static str > ,
7172) {
0 commit comments