Skip to content

Commit

Permalink
Fix cliconfig tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhjp committed Mar 1, 2024
1 parent 5c76774 commit b429d8a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions api/cliconfig/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
4 changes: 2 additions & 2 deletions api/tokenhelper/helper_external_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()}
}

Expand Down
4 changes: 0 additions & 4 deletions command/test-fixtures/config.hcl

This file was deleted.

0 comments on commit b429d8a

Please sign in to comment.