Optimize the log info for client test

Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
Upstream-commit: 9a9c077e63
Component: cli
This commit is contained in:
yuexiao-wang
2016-12-02 03:32:04 +08:00
parent 77042515db
commit d37ef3a01b
3 changed files with 9 additions and 9 deletions

View File

@ -35,7 +35,7 @@ func TestPluginPush(t *testing.T) {
}
auth := req.Header.Get("X-Registry-Auth")
if auth != "authtoken" {
return nil, fmt.Errorf("Invalid auth header : expected %s, got %s", "authtoken", auth)
return nil, fmt.Errorf("Invalid auth header : expected 'authtoken', got %s", auth)
}
return &http.Response{
StatusCode: http.StatusOK,