Skip to content

Commit bce6a82

Browse files
committed
fix tests on dbs without json
1 parent b40e356 commit bce6a82

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/index.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,12 @@ async fn privileged_paths_are_not_accessible() {
528528
#[actix_web::test]
529529
/// https://github.com/sqlpage/SQLPage/issues/738
530530
async fn test_json_columns() {
531+
let app_data = make_app_data().await;
532+
if !matches!(app_data.db.to_string().to_lowercase().as_str(), "postgres" | "sqlite") {
533+
log::info!("Skipping test_json_columns on database {}", app_data.db);
534+
return;
535+
}
536+
531537
let resp_result = req_path("/tests/json_columns.sql").await;
532538
let resp = resp_result.expect("Failed to request /tests/json_columns.sql");
533539
assert_eq!(resp.status(), http::StatusCode::OK);

0 commit comments

Comments
 (0)