test: make gen test output less verbose

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
This commit is contained in:
Alexander Bezzubov 2019-02-20 12:43:13 +01:00
parent 01633d410f
commit c8e0f75132
No known key found for this signature in database
GPG Key ID: 8039F5787EFCD05D

View File

@ -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))
}
}