From dbdbfd33c95417f3cb97e51299a14e0c5043b75d Mon Sep 17 00:00:00 2001 From: eparker-tulip Date: Mon, 1 Jul 2024 14:44:24 -0500 Subject: [PATCH] fix tests --- lib/config/main_test.go | 2 +- scripts/runUnitTests.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/config/main_test.go b/lib/config/main_test.go index 23692104..2957f124 100644 --- a/lib/config/main_test.go +++ b/lib/config/main_test.go @@ -94,7 +94,7 @@ func TestParseEnv(t *testing.T) { if !envTest.expectError && err != nil { t.Fatalf( - "Recevied unexpected error while parsing env: %#v.\n Error was: %s", + "Received unexpected error while parsing env: %#v.\n Error was: %s", envTest.env, err, ) } diff --git a/scripts/runUnitTests.sh b/scripts/runUnitTests.sh index 3d3e90c3..0b250de5 100755 --- a/scripts/runUnitTests.sh +++ b/scripts/runUnitTests.sh @@ -5,4 +5,6 @@ set -e cd `dirname "$0"`'/..' +export OTR_REDIS_URL=redis://yyy +export OTR_MONGO_URL=redis://xxx go test -race -cover -timeout 5s . ./lib/...