Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 4ff19a2

Browse files
committed
Adjust should_panic tests for 1.73+ panic format
1 parent 09c7906 commit 4ff19a2

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

accounts-db/src/append_vec.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -767,19 +767,25 @@ pub mod tests {
767767
}
768768

769769
#[test]
770-
#[should_panic(expected = "assertion failed:")]
770+
// rust 1.73+ (our as-of-writing nightly version) changed panic message. we're stuck with this
771+
// short common substring until the monorepo is fully 1.73+ including stable.
772+
#[should_panic(expected = "left == right")]
771773
fn test_storable_accounts_with_hashes_and_write_versions_new2() {
772774
test_mismatch(false, false);
773775
}
774776

775777
#[test]
776-
#[should_panic(expected = "assertion failed:")]
778+
// rust 1.73+ (our as-of-writing nightly version) changed panic message. we're stuck with this
779+
// short common substring until the monorepo is fully 1.73+ including stable.
780+
#[should_panic(expected = "left == right")]
777781
fn test_storable_accounts_with_hashes_and_write_versions_new3() {
778782
test_mismatch(false, true);
779783
}
780784

781785
#[test]
782-
#[should_panic(expected = "assertion failed:")]
786+
// rust 1.73+ (our as-of-writing nightly version) changed panic message. we're stuck with this
787+
// short common substring until the monorepo is fully 1.73+ including stable.
788+
#[should_panic(expected = "left == right")]
783789
fn test_storable_accounts_with_hashes_and_write_versions_new4() {
784790
test_mismatch(true, false);
785791
}

0 commit comments

Comments
 (0)