File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -167,9 +167,6 @@ jobs:
167
167
matrix :
168
168
runtime : [async-std, tokio]
169
169
needs : check
170
- env :
171
- # Enable tests with SQLCipher
172
- RUSTFLAGS : --cfg sqlite_test_sqlcipher
173
170
steps :
174
171
- uses : actions/checkout@v2
175
172
@@ -201,7 +198,7 @@ jobs:
201
198
env :
202
199
DATABASE_URL : sqlite:tests/sqlite/sqlite.db
203
200
SQLX_OFFLINE_DIR : .sqlx
204
- RUSTFLAGS : --cfg sqlite_ipaddr
201
+ RUSTFLAGS : --cfg sqlite_ipaddr --cfg sqlite_test_sqlcipher
205
202
LD_LIBRARY_PATH : /tmp/sqlite3-lib
206
203
207
204
# Remove test artifacts
Original file line number Diff line number Diff line change
1
+ #![ cfg( sqlite_test_sqlcipher) ]
2
+
1
3
use std:: str:: FromStr ;
2
4
3
5
use sqlx:: sqlite:: SqliteQueryResult ;
@@ -125,7 +127,6 @@ async fn it_fails_if_password_is_incorrect() -> anyhow::Result<()> {
125
127
Ok ( ( ) )
126
128
}
127
129
128
- #[ cfg( sqlite_test_sqlcipher) ]
129
130
#[ sqlx_macros:: test]
130
131
async fn it_honors_order_of_encryption_pragmas ( ) -> anyhow:: Result < ( ) > {
131
132
let ( url, _dir) = new_db_url ( ) . await ?;
You can’t perform that action at this time.
0 commit comments