Unverified Commit c70dd08d authored by Steven Fackler's avatar Steven Fackler Committed by GitHub
Browse files

Merge pull request #1990 from sfackler/alex-patch-2

Make test more flexible, sometimes this returns errors instead of inv…
parents 4d2379f2 f951978a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -936,8 +936,8 @@ mod test {
        let bad_data = b"Some Crypto text";

        ctx.verify_init().unwrap();
        let valid = ctx.verify(bad_data, &signature).unwrap();
        assert!(!valid);
        let valid = ctx.verify(bad_data, &signature);
        assert!(matches!(valid, Ok(false) | Err(_)));
        assert!(ErrorStack::get().errors().is_empty());
    }