From 002e50f493be42ccab2d2d479eeaa3e3bd054d73 Mon Sep 17 00:00:00 2001 From: Emil Hessman Date: Mon, 15 Dec 2014 19:16:19 +0100 Subject: [PATCH] builder/googlecompute: fix formatting directives Fixes the following vet reports: builder/googlecompute/step_create_instance_test.go:42: possible formatting directive in Fatal call builder/googlecompute/step_teardown_instance_test.go:29: possible formatting directive in Fatal call builder/googlecompute/step_teardown_instance_test.go:39: possible formatting directive in Fatal call --- builder/googlecompute/step_create_instance_test.go | 2 +- builder/googlecompute/step_teardown_instance_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builder/googlecompute/step_create_instance_test.go b/builder/googlecompute/step_create_instance_test.go index c7272bea8..baae10849 100644 --- a/builder/googlecompute/step_create_instance_test.go +++ b/builder/googlecompute/step_create_instance_test.go @@ -39,7 +39,7 @@ func TestStepCreateInstance(t *testing.T) { t.Fatal("should've deleted instance") } if driver.DeleteInstanceZone != config.Zone { - t.Fatal("bad zone: %#v", driver.DeleteInstanceZone) + t.Fatalf("bad zone: %#v", driver.DeleteInstanceZone) } } diff --git a/builder/googlecompute/step_teardown_instance_test.go b/builder/googlecompute/step_teardown_instance_test.go index f007d5179..bd32ea26d 100644 --- a/builder/googlecompute/step_teardown_instance_test.go +++ b/builder/googlecompute/step_teardown_instance_test.go @@ -26,7 +26,7 @@ func TestStepTeardownInstance(t *testing.T) { t.Fatal("should've deleted instance") } if driver.DeleteInstanceZone != config.Zone { - t.Fatal("bad zone: %#v", driver.DeleteInstanceZone) + t.Fatalf("bad zone: %#v", driver.DeleteInstanceZone) } // cleanup @@ -36,6 +36,6 @@ func TestStepTeardownInstance(t *testing.T) { t.Fatal("should've deleted disk") } if driver.DeleteDiskZone != config.Zone { - t.Fatal("bad zone: %#v", driver.DeleteDiskZone) + t.Fatalf("bad zone: %#v", driver.DeleteDiskZone) } }