Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
Signed-off-by: Xian Chaobo <xianchaobo@huawei.com>
  • Loading branch information
jimmyxian committed Jul 23, 2015
1 parent fa1083b commit 910c869
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion auth_test.go
Expand Up @@ -7,7 +7,7 @@ import (
func TestAuthEncode(t *testing.T) {
a := AuthConfig{Username: "foo", Password: "password", Email: "bar@baz.com"}
expected := "eyJ1c2VybmFtZSI6ImZvbyIsInBhc3N3b3JkIjoicGFzc3dvcmQiLCJlbWFpbCI6ImJhckBiYXouY29tIn0K"
got := a.encode()
got, _ := a.encode()

if expected != got {
t.Errorf("testAuthEncode failed. Expected [%s] got [%s]", expected, got)
Expand Down
2 changes: 1 addition & 1 deletion dockerclient.go
Expand Up @@ -638,7 +638,7 @@ func (client *DockerClient) ImportImage(source string, repository string, tag st
return client.doStreamRequest("POST", "/images/create?"+v.Encode(), in, nil)
}

func (client *DockerClient) BuildImage(image BuildImage) (io.ReadCloser, error) {
func (client *DockerClient) BuildImage(image *BuildImage) (io.ReadCloser, error) {
v := url.Values{}

if image.DockerfileName != "" {
Expand Down
2 changes: 1 addition & 1 deletion mockclient/mock.go
Expand Up @@ -151,7 +151,7 @@ func (client *MockClient) ImportImage(source string, repository string, tag stri
return args.Get(0).(io.ReadCloser), args.Error(1)
}

func (client *MockClient) BuildImage(image BuildImage) (io.ReadCloser, error) {
func (client *MockClient) BuildImage(image *dockerclient.BuildImage) (io.ReadCloser, error) {
args := client.Mock.Called(image)
return args.Get(0).(io.ReadCloser), args.Error(1)
}

0 comments on commit 910c869

Please sign in to comment.