diff --git a/api/cliconfig/config_test.go b/api/cliconfig/config_test.go index f9d6a6580e3b..163f1773997a 100644 --- a/api/cliconfig/config_test.go +++ b/api/cliconfig/config_test.go @@ -10,10 +10,8 @@ import ( "testing" ) -const FixturePath = "../test-fixtures" - func TestLoadConfig(t *testing.T) { - config, err := LoadConfig(filepath.Join(FixturePath, "config.hcl")) + config, err := LoadConfig(filepath.Join("testdata", "config.hcl")) if err != nil { t.Fatalf("err: %s", err) } diff --git a/api/tokenhelper/helper_external_test.go b/api/tokenhelper/helper_external_test.go index 8508a1630e12..c3ca6a595d51 100644 --- a/api/tokenhelper/helper_external_test.go +++ b/api/tokenhelper/helper_external_test.go @@ -53,10 +53,10 @@ func TestExternalTokenHelperPath(t *testing.T) { } func TestExternalTokenHelper(t *testing.T) { - test(t, testExternalTokenHelper(t)) + test(t, testExternalTokenHelper()) } -func testExternalTokenHelper(t *testing.T) *ExternalTokenHelper { +func testExternalTokenHelper() *ExternalTokenHelper { return &ExternalTokenHelper{BinaryPath: helperPath("helper"), Env: helperEnv()} } diff --git a/command/test-fixtures/config.hcl b/command/test-fixtures/config.hcl deleted file mode 100644 index 9161fff4520b..000000000000 --- a/command/test-fixtures/config.hcl +++ /dev/null @@ -1,4 +0,0 @@ -# Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 - -token_helper = "foo"