Skip to content

Commit

Permalink
feat(image): custom docker host option: fix - add protocol for docker…
Browse files Browse the repository at this point in the history
…HostParam in windows test (#2997)
  • Loading branch information
aswath-s-tw committed Feb 16, 2023
1 parent 8387700 commit c447d1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/fanal/image/daemon/image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func Test_image_ConfigNameWithCustomDockerHost(t *testing.T) {
defer te.Close()

if runtime.GOOS == "windows" {
dockerHostParam = te.Listener.Addr().String()
dockerHostParam = te.Listener.Addr().Network() + "://" + te.Listener.Addr().String()
}

img, cleanup, err := DockerImage(ref, dockerHostParam)
Expand Down

0 comments on commit c447d1c

Please sign in to comment.