Try to fix CI error with sqlcipher

This commit is contained in:
gwenn 2024-12-07 10:54:07 +01:00
parent 530292d873
commit 37c50d3f98

View File

@ -1288,10 +1288,8 @@ mod test {
stmt.parameter_index("test")?;
let err = stmt.step().unwrap_err();
assert_eq!(err.sqlite_error_code(), Some(crate::ErrorCode::ApiMisuse));
assert_eq!(
err.to_string(),
"bad parameter or other API misuse".to_owned()
);
// error msg is different with sqlcipher, so we use assert_ne:
assert_ne!(err.to_string(), "not an error".to_owned());
stmt.reset()?; // SQLITE_OMIT_AUTORESET = false
stmt.execute([]).unwrap_err();
Ok(())