Ver Fonte

fix wrong print format

Signed-off-by: Reficul <xuzhenglun@gmail.com>
Reficul há 8 anos atrás
pai
commit
9b1ceecd8a

+ 1 - 1
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)
 	}
 }
 

+ 1 - 1
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",