Skip to content

Commit

Permalink
fixup! wip
Browse files Browse the repository at this point in the history
  • Loading branch information
gandarez committed Nov 4, 2024
1 parent 96ef2b2 commit ab12250
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pkg/remote/remote_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,13 @@ func TestWithDetection_SshConfig_Hostname(t *testing.T) {
entityFolder, err := filepath.Abs("./testdata/main.go")
require.NoError(t, err)

entity := "ssh://user:[email protected]:" + strconv.Itoa(port) + "/" + entityFolder
entity := "ssh://user:[email protected]:" + strconv.Itoa(port)

if runtime.GOOS == "windows" {
entity += "/" + entityFolder
entity = windows.FormatFilePath(entity)
} else {
entity += entityFolder
}

sender := mockSender{
Expand Down Expand Up @@ -239,10 +242,13 @@ func TestWithDetection_SshConfig_UserKnownHostsFile_Match(t *testing.T) {
entityFolder, err := filepath.Abs("./testdata/main.go")
require.NoError(t, err)

entity := "ssh://user:[email protected]:" + strconv.Itoa(port) + "/" + entityFolder
entity := "ssh://user:[email protected]:" + strconv.Itoa(port)

if runtime.GOOS == "windows" {
entity += "/" + entityFolder
entity = windows.FormatFilePath(entity)
} else {
entity += entityFolder
}

sender := mockSender{
Expand Down

0 comments on commit ab12250

Please sign in to comment.