Patchwork D11656: rhg: fix the test

login
register
mail settings
Submitter phabricator
Date Oct. 13, 2021, 5:14 p.m.
Message ID <differential-rev-PHID-DREV-3q6hfv3hasvqauypav5p-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49980/
State Superseded
Headers show

Comments

phabricator - Oct. 13, 2021, 5:14 p.m.
aalekseyev created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D11656

AFFECTED FILES
  rust/hg-core/src/revlog/revlog.rs

CHANGE DETAILS




To: aalekseyev, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/rust/hg-core/src/revlog/revlog.rs b/rust/hg-core/src/revlog/revlog.rs
--- a/rust/hg-core/src/revlog/revlog.rs
+++ b/rust/hg-core/src/revlog/revlog.rs
@@ -424,6 +424,6 @@ 
             .with_version(1)
             .build();
 
-        assert_eq!(get_version(&bytes), 1)
+        assert_eq!(get_version(&bytes).map_err(|_err|()), Ok(1))
     }
 }