Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony M. Bonafide <anthony.bonafide@shipt.com>
  • Loading branch information
AnthonyMBonafide committed Mar 29, 2024
1 parent 241937b commit 78e4a51
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/msrv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion scripts/init_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
2 changes: 1 addition & 1 deletion tests/health_check.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use sqlx::{Connection, Executor, PgConnection, PgPool, Row};
use sqlx::{Connection, Executor, PgConnection, PgPool};
use std::net::TcpListener;
use uuid::Uuid;

Expand Down

0 comments on commit 78e4a51

Please sign in to comment.