From c8e0f75132c249705c2412087cdee9882cba1a28 Mon Sep 17 00:00:00 2001 From: Alexander Bezzubov Date: Wed, 20 Feb 2019 12:43:13 +0100 Subject: [PATCH] test: make gen test output less verbose Signed-off-by: Alexander Bezzubov --- internal/code-generator/generator/generator_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/code-generator/generator/generator_test.go b/internal/code-generator/generator/generator_test.go index 71ca410..045d30b 100644 --- a/internal/code-generator/generator/generator_test.go +++ b/internal/code-generator/generator/generator_test.go @@ -2,7 +2,6 @@ package generator import ( "flag" - "fmt" "io/ioutil" "os" "os/exec" @@ -283,6 +282,6 @@ func (s *GeneratorTestSuite) TestGenerationFiles() { assert.NoError(s.T(), err) out, err := ioutil.ReadFile(outPath.Name()) assert.NoError(s.T(), err) - assert.EqualValues(s.T(), gold, out, fmt.Sprintf("%v: %v, expected: %v", test.name, string(out), string(gold))) + assert.Equal(s.T(), string(gold), string(out)) } }