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:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user