1
0
mirror of https://github.com/moby/moby.git synced 2025-07-30 18:23:29 +03:00

integcli: lint fixes

Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack)
This commit is contained in:
unclejack
2014-10-06 17:26:55 +03:00
parent 44264f48e4
commit c0e632246d
13 changed files with 64 additions and 64 deletions

View File

@ -25,11 +25,11 @@ func TestInspectApiContainerResponse(t *testing.T) {
}
body, err := sockRequest("GET", endpoint)
if err != nil {
t.Fatal("sockRequest failed for %s version: %v", testVersion, err)
t.Fatalf("sockRequest failed for %s version: %v", testVersion, err)
}
var inspect_json map[string]interface{}
if err = json.Unmarshal(body, &inspect_json); err != nil {
var inspectJSON map[string]interface{}
if err = json.Unmarshal(body, &inspectJSON); err != nil {
t.Fatalf("unable to unmarshal body for %s version: %v", testVersion, err)
}
@ -42,12 +42,12 @@ func TestInspectApiContainerResponse(t *testing.T) {
}
for _, key := range keys {
if _, ok := inspect_json[key]; !ok {
if _, ok := inspectJSON[key]; !ok {
t.Fatalf("%s does not exist in reponse for %s version", key, testVersion)
}
}
//Issue #6830: type not properly converted to JSON/back
if _, ok := inspect_json["Path"].(bool); ok {
if _, ok := inspectJSON["Path"].(bool); ok {
t.Fatalf("Path of `true` should not be converted to boolean `true` via JSON marshalling")
}
}