Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/master' into dm-clean-up-runtime…
…-block-on-in-tests
  • Loading branch information
dmitry-markin committed Dec 14, 2022
commit 860f76be76c24dda73bca89da3ef95fcc9f23939
7 changes: 5 additions & 2 deletions client/network/src/service/tests/chain_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async fn request_justification() {

set_default_expecations_no_peers(&mut chain_sync);
let mut network = TestNetworkBuilder::new()
.with_chain_sync((chain_sync, chain_sync_service))
.with_chain_sync((Box::new(chain_sync), chain_sync_service))
.build();

// send "request justifiction" message and poll the network
Expand Down Expand Up @@ -316,7 +316,10 @@ async fn invalid_justification_imported() {
let listen_addr = config::build_multiaddr![Memory(rand::random::<u64>())];

let (service1, mut event_stream1) = TestNetworkBuilder::new()
.with_import_queue(Box::new(DummyImportQueue(justification_info.clone())))
.with_import_queue(Box::new(DummyImportQueue(
justification_info.clone(),
DummyImportQueueHandle {},
)))
.with_listen_addresses(vec![listen_addr.clone()])
.build()
.start_network();
Expand Down
2 changes: 1 addition & 1 deletion client/network/src/service/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ impl TestNetworkBuilder {
tokio::spawn(async move {
let _ = chain_sync_network_provider.run(service).await;
});
self.rt_handle.spawn(async move {
tokio::spawn(async move {
loop {
futures::future::poll_fn(|cx| {
import_queue.poll_actions(cx, &mut *link);
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.