Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
EyalDelarea committed Nov 21, 2024
1 parent bfcd1d2 commit 76528ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nuget_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"encoding/xml"
"github.com/jfrog/jfrog-client-go/utils/log"
"os"
"path/filepath"
"strconv"
Expand Down Expand Up @@ -119,9 +120,9 @@ func testNugetCmd(t *testing.T, projectPath, buildName, buildNumber string, expe
chdirCallback := clientTestUtils.ChangeDirWithCallback(t, wd, projectPath)
defer chdirCallback()

allowInsecureConnectionForTests(projectType, &args)
args = append(args, "--build-name="+buildName, "--build-number="+buildNumber)

allowInsecureConnectionForTests(projectType, &args)
err = runNuGet(t, args...)
if err != nil {
return
Expand Down Expand Up @@ -159,7 +160,10 @@ func testNugetCmd(t *testing.T, projectPath, buildName, buildNumber string, expe
// Add allow insecure connection for testings to work with localhost server
// dotNet also uses this cmd, and we want to apply this only for Nuget.
func allowInsecureConnectionForTests(projectType string, args *[]string) *[]string {
//if projectType == project.Nuget.String() {

Check failure on line 163 in nuget_test.go

View workflow job for this annotation

GitHub Actions / Static Check ubuntu-latest

commentFormatting: put a space between `//` and comment text (gocritic)
*args = append(*args, "--allow-insecure-connections")
//}
log.Debug(projectType)
return args
}

Expand Down

0 comments on commit 76528ad

Please sign in to comment.