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 85ab176 commit 4e9e5f0Copy full SHA for 4e9e5f0
node/src/config.rs
@@ -1463,12 +1463,15 @@ mod tests {
1463
1464
#[test]
1465
fn it_fails_for_substreams() {
1466
- let _actual: Result<Provider, _> = toml::from_str(
+ let actual: Result<Provider, _> = toml::from_str(
1467
r#"
1468
label = "bananas"
1469
details = { type = "substreams", url = "http://localhost:9000", features = [] }
1470
"#,
1471
);
1472
+ assert!(actual.is_err());
1473
+ let err = actual.unwrap_err().to_string();
1474
+ assert!(err.contains("unknown variant `substreams`"));
1475
}
1476
1477
0 commit comments