Skip to content

Commit 06ee58b

Browse files
committed
tests: adjust template lookup registration test to account for more verbose error msg
1 parent ef7d718 commit 06ee58b

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

tests/test_template.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -869,10 +869,11 @@ fn template_lookup_register_errors() {
869869
))
870870
.arg("data.csv");
871871

872-
let got: String = wrk.stdout(&mut cmd);
873-
assert!(got.starts_with(
874-
"RENDERING ERROR (1): invalid operation: failed to load lookup table: failed to open \
875-
nonexistent.csv:"
872+
wrk.assert_err(&mut cmd);
873+
874+
let got: String = wrk.output_stderr(&mut cmd);
875+
assert!(got.contains(
876+
r#"invalid operation: failed to load lookup table "test": failed to open nonexistent.csv:"#
876877
));
877878
}
878879
#[test]

0 commit comments

Comments
 (0)