Skip to content

Commit

Permalink
Fix incorrect call of read_event instead of read_resolved_event i…
Browse files Browse the repository at this point in the history
…n the test
  • Loading branch information
Mingun committed Dec 3, 2023
1 parent a4b0f53 commit db8546a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/reader-errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,9 @@ mod ill_formed {
let xml = concat!($xml, "<x/>");
let mut reader = NsReader::from_str(xml);
reader.config_mut().enable_all_checks(true);
reader.read_event().expect("first .read_resolved_event()");
reader
.read_resolved_event()
.expect("first .read_resolved_event()");
match reader.read_resolved_event() {
Err(Error::IllFormed(cause)) => assert_eq!(
(cause, reader.error_position(), reader.buffer_position()),
Expand Down

0 comments on commit db8546a

Please sign in to comment.