From 0589f329e9cccbb8f86e7238baf2605014789b77 Mon Sep 17 00:00:00 2001 From: James Houlahan Date: Thu, 23 Apr 2020 10:07:41 +0200 Subject: [PATCH] refactor: dedicated constants package, no explicit bridge version --- test/Makefile | 2 +- test/main_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Makefile b/test/Makefile index 82d1e680..ef6eb4a0 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,9 +1,9 @@ .PHONY: check-has-go install-godog test test-live test-debug test-live-debug export GO111MODULE=on +export BRIDGE_VERSION:=dev-integrationtests export VERBOSITY?=fatal export TEST_DATA=testdata -export VERSION:=dev-integrationtests check-has-go: @which go || (echo "Install Go-lang!" && exit 1) diff --git a/test/main_test.go b/test/main_test.go index f91affb4..7e24cb87 100644 --- a/test/main_test.go +++ b/test/main_test.go @@ -36,7 +36,7 @@ func init() { //nolint[gochecknoinits] godog.BindFlags("godog.", flag.CommandLine, &opt) // This would normally be done using ldflags but `godog` command doesn't support that. - constants.Version = os.Getenv("VERSION") + constants.Version = os.Getenv("BRIDGE_VERSION") } func TestMain(m *testing.M) {