forked from moby/buildkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sshprovider: on Windows, ModeSocket might not be set on the ssh socket
Fixes moby#914
- Loading branch information
Showing
2 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package sshprovider_test | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/moby/buildkit/cmd/buildctl/build" | ||
"github.com/moby/buildkit/session/sshforward/sshprovider" | ||
) | ||
|
||
func TestToAgentSource(t *testing.T) { | ||
configs, err := build.ParseSSH([]string{"default"}) | ||
if err != nil { | ||
t.Fatal(err) | ||
} | ||
_, err = sshprovider.NewSSHAgentProvider(configs) | ||
if err != nil { | ||
t.Fatal(err) | ||
} | ||
} |