mirror of
https://github.com/docker/docs.git
synced 2026-04-12 06:19:22 +07:00
Fix go vet warnings
Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
This commit is contained in:
@@ -1836,7 +1836,7 @@ func TestBuildFromGIT(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if res != "docker" {
|
||||
t.Fatal("Maintainer should be docker, got %s", res)
|
||||
t.Fatalf("Maintainer should be docker, got %s", res)
|
||||
}
|
||||
logDone("build - build from GIT")
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ func TestCLIGetEventsContainerEvents(t *testing.T) {
|
||||
eventsCmd := exec.Command(dockerBinary, "events", "--since=0", fmt.Sprintf("--until=%d", time.Now().Unix()))
|
||||
out, exitCode, err := runCommandWithOutput(eventsCmd)
|
||||
if exitCode != 0 || err != nil {
|
||||
t.Fatal("Failed to get events with exit code %d: %s", exitCode, err)
|
||||
t.Fatalf("Failed to get events with exit code %d: %s", exitCode, err)
|
||||
}
|
||||
events := strings.Split(out, "\n")
|
||||
events = events[:len(events)-1]
|
||||
@@ -119,7 +119,7 @@ func TestCLIGetEventsImageUntagDelete(t *testing.T) {
|
||||
eventsCmd := exec.Command(dockerBinary, "events", "--since=0", fmt.Sprintf("--until=%d", time.Now().Unix()))
|
||||
out, exitCode, err := runCommandWithOutput(eventsCmd)
|
||||
if exitCode != 0 || err != nil {
|
||||
t.Fatal("Failed to get events with exit code %d: %s", exitCode, err)
|
||||
t.Fatalf("Failed to get events with exit code %d: %s", exitCode, err)
|
||||
}
|
||||
events := strings.Split(out, "\n")
|
||||
t.Log(events)
|
||||
|
||||
@@ -102,7 +102,7 @@ func TestContainerOrphaning(t *testing.T) {
|
||||
t.Fatalf("%v: %s", err, out)
|
||||
}
|
||||
if !strings.Contains(out, img1) {
|
||||
t.Fatal("Orphaned container (could not find '%s' in docker images): %s", img1, out)
|
||||
t.Fatalf("Orphaned container (could not find '%s' in docker images): %s", img1, out)
|
||||
}
|
||||
|
||||
deleteAllContainers()
|
||||
|
||||
Reference in New Issue
Block a user