mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 21:41:12 +00:00
Build LongestChain with TestClientBuilder (#2792)
* Switch to `TestClientBuilder` and support generating LongestChain * Make sure test-client works without the wasm blob * Use `TestClientBuilder` in more places
This commit is contained in:
@@ -21,7 +21,7 @@ use assert_matches::assert_matches;
|
||||
use consensus::BlockOrigin;
|
||||
use primitives::storage::well_known_keys;
|
||||
use sr_io::blake2_256;
|
||||
use test_client::{self, runtime, AccountKeyring, TestClient, BlockBuilderExt, LocalExecutor};
|
||||
use test_client::{self, runtime, AccountKeyring, TestClient, BlockBuilderExt, LocalExecutor, TestClientBuilder};
|
||||
use substrate_executor::NativeExecutionDispatch;
|
||||
|
||||
#[test]
|
||||
@@ -236,7 +236,7 @@ fn should_query_storage() {
|
||||
}
|
||||
|
||||
run_tests(Arc::new(test_client::new()));
|
||||
run_tests(Arc::new(test_client::new_with_changes_trie()));
|
||||
run_tests(Arc::new(TestClientBuilder::new().set_support_changes_trie(true).build()));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user