From 5eddaa77bf253808d52d8cb11fcc130d09c45e6d Mon Sep 17 00:00:00 2001 From: Chris Bednarski Date: Thu, 8 Oct 2015 17:43:54 -0700 Subject: [PATCH] Corrected sprintf formatting in error messages --- builder/docker/communicator_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/builder/docker/communicator_test.go b/builder/docker/communicator_test.go index 8448a6054..be533b8e7 100644 --- a/builder/docker/communicator_test.go +++ b/builder/docker/communicator_test.go @@ -180,20 +180,20 @@ func TestLargeDownload(t *testing.T) { // bigcake should be 104857600 bytes cupcake, err := os.Stat("cupcake") if err != nil { - t.Fatalf("Unable to stat cupcake file") + t.Fatalf("Unable to stat cupcake file: %s", err) } cupcakeExpected := int64(2097152) if cupcake.Size() != cupcakeExpected { - t.Errorf("Expected cupcake to be %s bytes; found %s", cupcakeExpected, cupcake.Size()) + t.Errorf("Expected cupcake to be %d bytes; found %d", cupcakeExpected, cupcake.Size()) } bigcake, err := os.Stat("bigcake") if err != nil { - t.Fatalf("Unable to stat bigcake file") + t.Fatalf("Unable to stat bigcake file: %s", err) } bigcakeExpected := int64(104857600) if bigcake.Size() != bigcakeExpected { - t.Errorf("Expected bigcake to be %s bytes; found %s", bigcakeExpected, bigcake.Size()) + t.Errorf("Expected bigcake to be %d bytes; found %d", bigcakeExpected, bigcake.Size()) } // TODO if we can, calculate a sha inside the container and compare to the