Skip to content

Commit

Permalink
fix(ci): just cfg-out the whole tests/sqlite/sqlcipher.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
abonander committed Mar 6, 2024
1 parent c694288 commit 6ce2247
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/sqlx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion tests/sqlite/sqlcipher.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(sqlite_test_sqlcipher)]

use std::str::FromStr;

use sqlx::sqlite::SqliteQueryResult;
Expand Down Expand Up @@ -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?;
Expand Down

0 comments on commit 6ce2247

Please sign in to comment.