node: fix shutdown (#1308)

* node: remove grandpa authority flags

* node: exit-guard grandpa and aura spawned futures

* node: wait for futures to stop running on shutdown

* core: run connectivity tests on same ports

* core: pass on_exit future when starting aura and grandpa

* node: add issue number to todo

* core: fix aura and grandpa tests
This commit is contained in:
André Silva
2018-12-21 16:30:45 +00:00
committed by Robert Habermeier
parent ef8b94656e
commit f8f932d123
7 changed files with 54 additions and 28 deletions
@@ -376,6 +376,7 @@ fn finalize_3_voters_no_observers() {
},
link,
MessageRouting::new(net.clone(), peer_id),
futures::empty(),
).expect("all in order with client and network");
assert_send(&voter);
@@ -436,6 +437,7 @@ fn finalize_3_voters_1_observer() {
},
link,
MessageRouting::new(net.clone(), peer_id),
futures::empty(),
).expect("all in order with client and network");
runtime.spawn(voter);
@@ -592,6 +594,7 @@ fn transition_3_voters_twice_1_observer() {
},
link,
MessageRouting::new(net.clone(), peer_id),
futures::empty(),
).expect("all in order with client and network");
runtime.spawn(voter);