fix(ci): just cfg-out the whole tests/sqlite/sqlcipher.rs

This commit is contained in:
Austin Bonander
2024-03-05 18:12:59 -08:00
parent 791a7f5417
commit 34860b7f99
2 changed files with 3 additions and 5 deletions

View File

@@ -167,9 +167,6 @@ jobs:
matrix:
runtime: [async-std, tokio]
needs: check
env:
# Enable tests with SQLCipher
RUSTFLAGS: --cfg sqlite_test_sqlcipher
steps:
- uses: actions/checkout@v2
@@ -201,7 +198,7 @@ jobs:
env:
DATABASE_URL: sqlite:tests/sqlite/sqlite.db
SQLX_OFFLINE_DIR: .sqlx
RUSTFLAGS: --cfg sqlite_ipaddr
RUSTFLAGS: --cfg sqlite_ipaddr --cfg sqlite_test_sqlcipher
LD_LIBRARY_PATH: /tmp/sqlite3-lib
# Remove test artifacts

View File

@@ -1,3 +1,5 @@
#![cfg(sqlite_test_sqlcipher)]
use std::str::FromStr;
use sqlx::sqlite::SqliteQueryResult;
@@ -125,7 +127,6 @@ async fn it_fails_if_password_is_incorrect() -> anyhow::Result<()> {
Ok(())
}
#[cfg(sqlite_test_sqlcipher)]
#[sqlx_macros::test]
async fn it_honors_order_of_encryption_pragmas() -> anyhow::Result<()> {
let (url, _dir) = new_db_url().await?;