Unverified Commit f951978a authored by Alex Gaynor's avatar Alex Gaynor Committed by GitHub
Browse files

Make test more flexible, sometimes this returns errors instead of invalid

parent 994e5ff8
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());
    }