Skip to content

Commit

Permalink
chore: add more debug information for failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiandoetsch committed Oct 30, 2024
1 parent 6d625c0 commit e720e1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions application/server/server_smoke_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import (

"github.com/creachadair/jrpc2"
"github.com/creachadair/jrpc2/server"
"github.com/rs/zerolog"
"github.com/snyk/go-application-framework/pkg/configuration"
sglsp "github.com/sourcegraph/go-lsp"
"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -181,6 +182,7 @@ func Test_SmokeIssueCaching(t *testing.T) {
if runtime.GOOS == "windows" {
t.Setenv("SNYK_LOG_LEVEL", "trace")
c.ConfigureLogging(nil)
c.SetLogLevel(zerolog.TraceLevel.String())
}

folderJuice := addJuiceShopAsWorkspaceFolder(t, loc, c)
Expand Down
2 changes: 1 addition & 1 deletion internal/testutil/test_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func SetupCustomTestRepo(t *testing.T, rootDir string, url string, targetCommit
assert.NoError(t, os.MkdirAll(tempDir, 0755))
repoDir := "1"
absoluteCloneRepoDir := filepath.Join(tempDir, repoDir)
cmd := []string{"clone", url, repoDir}
cmd := []string{"clone", "-v", url, repoDir}
logger.Debug().Interface("cmd", cmd).Msg("clone command")
clone := exec.Command("git", cmd...)
clone.Dir = tempDir
Expand Down

0 comments on commit e720e1f

Please sign in to comment.