From ccf59405cf5c68a55de6c851b225d541f5bf8d50 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 23 Oct 2018 20:04:59 -0300 Subject: [PATCH] Updated according to test_unit.sh (#805) --- scripts/ps/test_unit.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/ps/test_unit.ps1 b/scripts/ps/test_unit.ps1 index cafe2816..fb40cfba 100755 --- a/scripts/ps/test_unit.ps1 +++ b/scripts/ps/test_unit.ps1 @@ -2,4 +2,12 @@ if (!(Test-Path env:GO_ENV)) {$env:GO_ENV = "test"} +if (!(Test-Path env:ATHENS_MINIO_ENDPOINT)) { + $env:ATHENS_MINIO_ENDPOINT = "127.0.0.1:9001" +} + +if (!(Test-Path env:ATHENS_MONGO_STORAGE_URL)) { + $env:ATHENS_MONGO_STORAGE_URL = "mongodb://127.0.0.1:27017" +} + & go test -mod=vendor -race -coverprofile cover.out -covermode atomic ./...