summaryrefslogtreecommitdiff
path: root/integration/container/checkpoint_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integration/container/checkpoint_test.go')
-rw-r--r--integration/container/checkpoint_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/integration/container/checkpoint_test.go b/integration/container/checkpoint_test.go
index fb37fcea60..0bb8fcf581 100644
--- a/integration/container/checkpoint_test.go
+++ b/integration/container/checkpoint_test.go
@@ -2,7 +2,6 @@ package container // import "github.com/docker/docker/integration/container"
import (
"context"
- "fmt"
"os/exec"
"regexp"
"sort"
@@ -84,9 +83,9 @@ func TestCheckpoint(t *testing.T) {
err = client.CheckpointCreate(ctx, cID, cptOpt)
if err != nil {
// An error can contain a path to a dump file
- t.Logf("%s", err)
+ t.Log(err)
re := regexp.MustCompile("path= (.*): ")
- m := re.FindStringSubmatch(fmt.Sprintf("%s", err))
+ m := re.FindStringSubmatch(err.Error())
if len(m) >= 2 {
dumpLog := m[1]
t.Logf("%s", dumpLog)