From ca9b500e765ea373cc0a745427be9349dde8d9e4 Mon Sep 17 00:00:00 2001 From: DanHam Date: Thu, 22 Aug 2019 09:48:32 +0100 Subject: [PATCH] Fix test output: Correct copy/paste errors and make message clearer --- post-processor/vagrant-cloud/post-processor_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/post-processor/vagrant-cloud/post-processor_test.go b/post-processor/vagrant-cloud/post-processor_test.go index 58e65efaf..4c06abead 100644 --- a/post-processor/vagrant-cloud/post-processor_test.go +++ b/post-processor/vagrant-cloud/post-processor_test.go @@ -322,7 +322,7 @@ func TestProviderFromVagrantBox_metadata_bad_json(t *testing.T) { _, err = providerFromVagrantBox(boxfile.Name()) if err == nil { - t.Fatalf("Should have error as box files metadata.json file is empty") + t.Fatalf("Should have error as box files metadata.json file contains badly formatted JSON") } t.Logf("%s", err) } @@ -342,7 +342,7 @@ func TestProviderFromVagrantBox_metadata_no_provider_key(t *testing.T) { _, err = providerFromVagrantBox(boxfile.Name()) if err == nil { - t.Fatalf("Should have error as box files metadata.json file is empty") + t.Fatalf("Should have error as provider key/value pair is missing from boxes metadata.json file") } t.Logf("%s", err) } @@ -362,7 +362,7 @@ func TestProviderFromVagrantBox_metadata_provider_value_empty(t *testing.T) { _, err = providerFromVagrantBox(boxfile.Name()) if err == nil { - t.Fatalf("Should have error as boxes metadata.json file 'provider' key is empty") + t.Fatalf("Should have error as value associated with 'provider' key in boxes metadata.json file is empty") } t.Logf("%s", err) }