Updates for CC's recent upgrade (#1381)

* Updates for CC's recent upgrade

- Version bump to 0.9.2
- Runtime version bump to v14
- Avoid misuse of error return type for system_health RPC

* Fix tests
This commit is contained in:
Gav Wood
2019-01-10 11:34:25 +01:00
committed by GitHub
parent ecbb51f729
commit 37fa74b891
7 changed files with 21 additions and 25 deletions
+10 -6
View File
@@ -97,11 +97,12 @@ fn system_properties_works() {
#[test]
fn system_health() {
assert_matches!(
api(None).system_health().unwrap_err().kind(),
error::ErrorKind::NotHealthy(Health {
api(None).system_health().unwrap(),
Health {
peers: 0,
is_syncing: false,
})
should_have_peers: true,
}
);
assert_matches!(
@@ -109,11 +110,12 @@ fn system_health() {
peers: 5,
is_syncing: true,
is_dev: true,
}).system_health().unwrap_err().kind(),
error::ErrorKind::NotHealthy(Health {
}).system_health().unwrap(),
Health {
peers: 5,
is_syncing: true,
})
should_have_peers: false,
}
);
assert_eq!(
@@ -125,6 +127,7 @@ fn system_health() {
Health {
peers: 5,
is_syncing: false,
should_have_peers: true,
}
);
@@ -137,6 +140,7 @@ fn system_health() {
Health {
peers: 0,
is_syncing: false,
should_have_peers: false,
}
);
}