Skip to content

Commit b827688

Browse files
committed
fix: make parsing error test data return parse error
This was not the case anymore with pallas '0.25.0'.
1 parent 8efaf9a commit b827688

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

mithril-common/src/cardano_transaction_parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ mod tests {
326326
cardano_transaction_parser
327327
.parse(db_path, &beacon)
328328
.await
329-
.unwrap();
329+
.expect_err("parse should have failed");
330330
}
331331

332332
let log_file = std::fs::read_to_string(&filepath).unwrap();

mithril-test-lab/test_data/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
> [!NOTE]
88
> The immutable files (`.chunk`, `.primary` and `.secondary`) files are data that are the result of
99
> the `mithril-end-to-end` test command execution.
10-
> The `parsing_error/` directory contains the `04831` and `04832` immutable files with some unparsable blocks in the first one (`04831` have been produced by the Sanchonet network, and `04832` created manually).
10+
> The `parsing_error/` directory contains the `04831` and `04832` immutable files with some unparsable blocks in the first one (`04831` have been produced by the Sanchonet network and altered manually with the command `echo " $(cat immutable/04831.chunk)" > immutable/04831.chunk`, and `04832` created manually).
1111
> They are needed for testing of the Cardano transactions parser.
Binary file not shown.

0 commit comments

Comments
 (0)