We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7035139 commit 07a6332Copy full SHA for 07a6332
1 file changed
client/service/test/src/client/mod.rs
@@ -1128,6 +1128,14 @@ fn finality_notifications_content() {
1128
assert!(finality_notifications.try_next().is_err());
1129
}
1130
1131
+#[test]
1132
+fn get_block_by_bad_block_hash_returns_none() {
1133
+ let client = substrate_test_runtime_client::new();
1134
+
1135
+ let hash = H256::from_low_u64_be(5);
1136
+ assert!(client.block(&BlockId::Hash(hash)).unwrap().is_none());
1137
+}
1138
1139
#[test]
1140
fn get_header_by_block_number_doesnt_panic() {
1141
let client = substrate_test_runtime_client::new();
0 commit comments