Browse code

fix wrong print format

Signed-off-by: Reficul <xuzhenglun@gmail.com>

Reficul authored on 2017/02/21 11:26:06
Showing 2 changed files
... ...
@@ -489,7 +489,7 @@ func TestArg(t *testing.T) {
489 489
 	}
490 490
 
491 491
 	if *val != "bar" {
492
-		t.Fatalf("%s argument should have default value 'bar', got %s", argName, val)
492
+		t.Fatalf("%s argument should have default value 'bar', got %s", argName, *val)
493 493
 	}
494 494
 }
495 495
 
... ...
@@ -492,7 +492,7 @@ func TestParseHealth(t *testing.T) {
492 492
 		t.Fatalf("--health-cmd: got %#v", health.Test)
493 493
 	}
494 494
 	if health.Timeout != 0 {
495
-		t.Fatalf("--health-cmd: timeout = %f", health.Timeout)
495
+		t.Fatalf("--health-cmd: timeout = %s", health.Timeout)
496 496
 	}
497 497
 
498 498
 	checkError("--no-healthcheck conflicts with --health-* options",