Skip to content

Commit

Permalink
set global featKeyDir
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelch-spike committed Oct 26, 2023
1 parent 4846224 commit 43e745c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
}
Expand Down Expand Up @@ -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{
Expand Down

0 comments on commit 43e745c

Please sign in to comment.