Skip to content

Commit 34860b7

Browse files
committed
fix(ci): just cfg-out the whole tests/sqlite/sqlcipher.rs
1 parent 791a7f5 commit 34860b7

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/sqlx.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,6 @@ jobs:
167167
matrix:
168168
runtime: [async-std, tokio]
169169
needs: check
170-
env:
171-
# Enable tests with SQLCipher
172-
RUSTFLAGS: --cfg sqlite_test_sqlcipher
173170
steps:
174171
- uses: actions/checkout@v2
175172

@@ -201,7 +198,7 @@ jobs:
201198
env:
202199
DATABASE_URL: sqlite:tests/sqlite/sqlite.db
203200
SQLX_OFFLINE_DIR: .sqlx
204-
RUSTFLAGS: --cfg sqlite_ipaddr
201+
RUSTFLAGS: --cfg sqlite_ipaddr --cfg sqlite_test_sqlcipher
205202
LD_LIBRARY_PATH: /tmp/sqlite3-lib
206203

207204
# Remove test artifacts

tests/sqlite/sqlcipher.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(sqlite_test_sqlcipher)]
2+
13
use std::str::FromStr;
24

35
use sqlx::sqlite::SqliteQueryResult;
@@ -125,7 +127,6 @@ async fn it_fails_if_password_is_incorrect() -> anyhow::Result<()> {
125127
Ok(())
126128
}
127129

128-
#[cfg(sqlite_test_sqlcipher)]
129130
#[sqlx_macros::test]
130131
async fn it_honors_order_of_encryption_pragmas() -> anyhow::Result<()> {
131132
let (url, _dir) = new_db_url().await?;

0 commit comments

Comments
 (0)