Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
asafambar committed Feb 29, 2024
1 parent 703b853 commit 0d37f33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion commands/curation/curationaudit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ func TestDoCurationAudit(t *testing.T) {
assert.NoError(t, err)
callbackPreTest()
}
callback3 := clienttestutils.ChangeDirWithCallback(t, rootDir, strings.TrimSuffix(tt.pathToTest, "/.jfrog"))
callback3 := clienttestutils.ChangeDirWithCallback(t, rootDir, strings.TrimSuffix(tt.pathToTest, string(os.PathSeparator)+".jfrog"))
defer func() {
cacheFolder, err := utils.GetCurationCacheFolder()
require.NoError(t, err)
Expand Down
3 changes: 1 addition & 2 deletions utils/paths.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package utils

import (
"github.com/jfrog/jfrog-cli-core/v2/utils/coreutils"
"github.com/jfrog/jfrog-client-go/utils"
"os"
"path/filepath"
)
Expand All @@ -19,7 +18,7 @@ const (
func getJfrogCurationFolder() (string, error) {
dependenciesDir := os.Getenv(CurationsDir)
if dependenciesDir != "" {
return utils.AddTrailingSlashIfNeeded(dependenciesDir), nil
return dependenciesDir, nil
}
jfrogHome, err := coreutils.GetJfrogHomeDir()
if err != nil {
Expand Down

0 comments on commit 0d37f33

Please sign in to comment.