From 9b1ceecd8a44e72ad773f7016df09a4b285258b8 Mon Sep 17 00:00:00 2001 From: Reficul Date: Tue, 21 Feb 2017 10:26:06 +0800 Subject: [PATCH] fix wrong print format Signed-off-by: Reficul --- builder/dockerfile/dispatchers_test.go | 2 +- cli/command/container/opts_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/dockerfile/dispatchers_test.go b/builder/dockerfile/dispatchers_test.go index d16028b162..d81950c608 100644 --- a/builder/dockerfile/dispatchers_test.go +++ b/builder/dockerfile/dispatchers_test.go @@ -489,7 +489,7 @@ func TestArg(t *testing.T) { } if *val != "bar" { - t.Fatalf("%s argument should have default value 'bar', got %s", argName, val) + t.Fatalf("%s argument should have default value 'bar', got %s", argName, *val) } } diff --git a/cli/command/container/opts_test.go b/cli/command/container/opts_test.go index d0655069e9..3aef42704f 100644 --- a/cli/command/container/opts_test.go +++ b/cli/command/container/opts_test.go @@ -492,7 +492,7 @@ func TestParseHealth(t *testing.T) { t.Fatalf("--health-cmd: got %#v", health.Test) } if health.Timeout != 0 { - t.Fatalf("--health-cmd: timeout = %f", health.Timeout) + t.Fatalf("--health-cmd: timeout = %s", health.Timeout) } checkError("--no-healthcheck conflicts with --health-* options",