From 43e745ce5a30e6642f132acf01be8d0c1cc0b00f Mon Sep 17 00:00:00 2001 From: dylan Date: Thu, 26 Oct 2023 16:38:48 -0700 Subject: [PATCH] set global featKeyDir --- integration_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration_test.go b/integration_test.go index 0889496..71425e9 100644 --- a/integration_test.go +++ b/integration_test.go @@ -64,7 +64,8 @@ func TestMain(m *testing.M) { panic(err) } - featKeyDir := os.Getenv("FEATKEY") + featKeyDir = os.Getenv("FEATKEY") + fmt.Println(featKeyDir) if featKeyDir == "" { panic("FEATKEY environement variable must be full path to a directory containing valid aerospike feature key files featuresv1.conf and featuresv2.conf of feature key format 1 and 2 respectively.") } @@ -433,7 +434,6 @@ func runServer(version string, confPath string, dockerClient *client.Client, t * if versionLessThanEqual(strings.TrimPrefix(version, "ee-"), lastServerWithFeatureKeyVersion1) { featureKeyPath = filepath.Join(featKeyDir, "featuresv1.conf") } - fmt.Println(featureKeyPath) containerHostConf := &container.HostConfig{ Mounts: []mount.Mount{