From 2478596df4c4431f229cf0064670e7e2799159f9 Mon Sep 17 00:00:00 2001 From: frrist Date: Fri, 17 Jun 2022 17:49:20 -0700 Subject: [PATCH] chore: allow `make test` to just work --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fbde37c2d..bf1730a10 100644 --- a/Makefile +++ b/Makefile @@ -81,8 +81,8 @@ dockerdown: testfull: build docker-compose up -d sleep 2 - ./lily migrate --latest - -TZ= PGSSLMODE=disable go test ./... -v + LILY_DB="postgres://postgres:password@localhost:5432/postgres?sslmode=disable" ./lily migrate --latest + -TZ= PGSSLMODE=disable LILY_TEST_DB="postgres://postgres:password@localhost:5432/postgres?sslmode=disable" go test ./... -v docker-compose down # testshort runs tests that don't require external dependencies such as postgres or redis