diff options
author | Sebastiaan van Stijn <github@gone.nl> | 2022-10-05 16:33:28 +0200 |
---|---|---|
committer | Sebastiaan van Stijn <github@gone.nl> | 2022-10-08 17:41:39 +0200 |
commit | 838fc976c82c5d09e622cdf275ebd4032e06819c (patch) | |
tree | 990c88854a068e694e59d5b47f855168fa11468e /integration | |
parent | 07b2e4cb7945e08feec99a7d1d2e80f0e6dc5aed (diff) | |
download | docker-838fc976c82c5d09e622cdf275ebd4032e06819c.tar.gz |
integration(-cli): remove some redundant formatting
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'integration')
-rw-r--r-- | integration/container/checkpoint_test.go | 5 |
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) |