Skip to content

Commit 4e9e5f0

Browse files
committed
node: Make the it_fails_for_substreams test actually assert stuff
1 parent 85ab176 commit 4e9e5f0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

node/src/config.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,12 +1463,15 @@ mod tests {
14631463

14641464
#[test]
14651465
fn it_fails_for_substreams() {
1466-
let _actual: Result<Provider, _> = toml::from_str(
1466+
let actual: Result<Provider, _> = toml::from_str(
14671467
r#"
14681468
label = "bananas"
14691469
details = { type = "substreams", url = "http://localhost:9000", features = [] }
14701470
"#,
14711471
);
1472+
assert!(actual.is_err());
1473+
let err = actual.unwrap_err().to_string();
1474+
assert!(err.contains("unknown variant `substreams`"));
14721475
}
14731476

14741477
#[test]

0 commit comments

Comments
 (0)