Skip to content

Commit

Permalink
Fix permission error in test
Browse files Browse the repository at this point in the history
  • Loading branch information
tstirrat15 committed Jan 6, 2025
1 parent ab6aedf commit 10fb7c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ func TestGetCurrentTokenWithCLIOverrideWithoutSecretFile(t *testing.T) {
require.NoError(err)

configStore := &storage.JSONConfigStore{ConfigPath: tmpDir}
secretStore := &storage.KeychainSecretStore{ConfigPath: "/not/a/valid/path"}
// NOTE: we put this path in the tmpdir as well because getting the token attempts to
// create the dir if it doesn't already exist, which will probably error.
secretStore := &storage.KeychainSecretStore{ConfigPath: path.Join(tmpDir, "/not/a/valid/path")}
token, err := client.GetCurrentTokenWithCLIOverride(cmd, configStore, secretStore)

// cli args take precedence when defined
Expand Down

0 comments on commit 10fb7c3

Please sign in to comment.