Skip to content

Commit

Permalink
Improve upload archive progress bar
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <[email protected]>
  • Loading branch information
sverdlov93 committed Jan 6, 2025
1 parent 4a048ae commit 91f9a19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions artifactory/commands/dotnet/dotnetcommand_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package dotnet

import (
"github.com/jfrog/jfrog-cli-core/v2/utils/ioutils"
"os"
"path/filepath"
"reflect"
Expand Down Expand Up @@ -267,7 +268,7 @@ func TestGetConfigPathFromEnvIfProvided(t *testing.T) {
defer restoreEnvNuGet()
}
result := GetConfigPathFromEnvIfProvided(testCase.cmdType)
assert.Equal(t, testCase.expectedPath, result)
assert.Equal(t, testCase.expectedPath, ioutils.WinToUnixPathSeparator(result))
})
}
}
Expand Down Expand Up @@ -297,8 +298,7 @@ func TestCreateConfigFileIfNeeded(t *testing.T) {
configPath := filepath.Join(t.TempDir(), tt.configPath)
if tt.fileExists {
assert.NoError(t, os.MkdirAll(filepath.Dir(configPath), 0777))
_, err := os.Create(configPath)
assert.NoError(t, err)
assert.NoError(t, os.WriteFile(configPath, []byte{}, 0644))
}
err := CreateConfigFileIfNeeded(configPath)
assert.NoError(t, err)
Expand Down

0 comments on commit 91f9a19

Please sign in to comment.