From 78e4a51c9a2e418f486f4b3ffe166e2ecb97fa29 Mon Sep 17 00:00:00 2001 From: "Anthony M. Bonafide" Date: Fri, 29 Mar 2024 11:04:50 -0400 Subject: [PATCH] Fix tests Signed-off-by: Anthony M. Bonafide --- .github/workflows/msrv.yml | 3 --- scripts/init_db.sh | 2 +- tests/health_check.rs | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/msrv.yml b/.github/workflows/msrv.yml index 9a36797..fb2d3bb 100644 --- a/.github/workflows/msrv.yml +++ b/.github/workflows/msrv.yml @@ -53,9 +53,6 @@ jobs: - name: Check sqlx-data.json is up-to-date run: | cargo sqlx prepare --workspace --check - - name: Migrate database - run: | - cargo sqlx migrate run - name: Run tests run: cargo test diff --git a/scripts/init_db.sh b/scripts/init_db.sh index dd6b84a..c31be50 100755 --- a/scripts/init_db.sh +++ b/scripts/init_db.sh @@ -23,7 +23,7 @@ DB_PORT="${POSTGRES_PORT:=5432}" DB_HOST="${POSTGRES_HOST:=localhost}" if [[ -z "${SKIP_DOCKER}" ]]; then - podman run -e POSTGRES_USER=${DB_USER} -e POSTGRES_PASSWORD=${DB_PASSWORD} -e POSTGRES_DB=${DB_NAME} -p "${DB_PORT}":5432 -d postgres postgres -N 1000 + docker run -e POSTGRES_USER=${DB_USER} -e POSTGRES_PASSWORD=${DB_PASSWORD} -e POSTGRES_DB=${DB_NAME} -p "${DB_PORT}":5432 -d postgres postgres -N 1000 fi export PGPASSWORD="${DB_PASSWORD}" diff --git a/tests/health_check.rs b/tests/health_check.rs index 1d63323..ef58e88 100644 --- a/tests/health_check.rs +++ b/tests/health_check.rs @@ -1,4 +1,4 @@ -use sqlx::{Connection, Executor, PgConnection, PgPool, Row}; +use sqlx::{Connection, Executor, PgConnection, PgPool}; use std::net::TcpListener; use uuid::Uuid;